This not only replaces many lines of complex code using the com.oracle.tools.runtime.actions package, but also allows for greater expressiveness of conditions.
Take the following for example:
cluster.unordered().limit(5).forEach(...);
It allows unordered set of five applications to be chosen and iterated over, or in the following case, filtered and closed.
With the introduction of Java 8 and streaming concepts, all uses of the "actions" module are no longer necessary for manipulating Assemblies.
For example, by introducing the concept of an ApplicationStream, it would be possible to perform the following;
This not only replaces many lines of complex code using the com.oracle.tools.runtime.actions package, but also allows for greater expressiveness of conditions.
Take the following for example:
It allows unordered set of five applications to be chosen and iterated over, or in the following case, filtered and closed.