public class ReferenceCountingExecutableStageContextFactory extends java.lang.Object implements ExecutableStageContext.Factory
ExecutableStageContext.Factory
which counts ExecutableStageContext reference for book
keeping.Modifier and Type | Class and Description |
---|---|
static interface |
ReferenceCountingExecutableStageContextFactory.Creator
Interface for creator which extends Serializable.
|
Modifier and Type | Method and Description |
---|---|
static ReferenceCountingExecutableStageContextFactory |
create(ReferenceCountingExecutableStageContextFactory.Creator creator,
SerializableFunction<java.lang.Object,java.lang.Boolean> isReleaseSynchronous) |
ExecutableStageContext |
get(JobInfo jobInfo)
Get or create
ExecutableStageContext for given JobInfo . |
public static ReferenceCountingExecutableStageContextFactory create(ReferenceCountingExecutableStageContextFactory.Creator creator, SerializableFunction<java.lang.Object,java.lang.Boolean> isReleaseSynchronous)
public ExecutableStageContext get(JobInfo jobInfo)
ExecutableStageContext.Factory
ExecutableStageContext
for given JobInfo
.get
in interface ExecutableStageContext.Factory