Class StreamContext

java.lang.Object
one.util.streamex.StreamContext

class StreamContext extends Object
This class controls stream execution mode (parallel/sequential), custom FJP and close handlers.

Fields are package-private and mutable, but it's forbidden to change them from outside this class.

For performance reasons shared objects SEQUENTIAL and PARALLEL are used: then have no custom FJP and no close handler. If custom FJP or close handler is requested for shared object, a new object is created, otherwise the current one is modified.