Class ReferenceCountingExecutableStageContextFactory
- java.lang.Object
-
- org.apache.beam.runners.fnexecution.control.ReferenceCountingExecutableStageContextFactory
-
- All Implemented Interfaces:
java.io.Serializable,ExecutableStageContext.Factory
public class ReferenceCountingExecutableStageContextFactory extends java.lang.Object implements ExecutableStageContext.Factory
ExecutableStageContext.Factorywhich counts ExecutableStageContext reference for book keeping.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReferenceCountingExecutableStageContextFactory.CreatorInterface for creator which extends Serializable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReferenceCountingExecutableStageContextFactorycreate(ReferenceCountingExecutableStageContextFactory.Creator creator, org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Object,java.lang.Boolean> isReleaseSynchronous)ExecutableStageContextget(JobInfo jobInfo)Get or createExecutableStageContextfor givenJobInfo.
-
-
-
Method Detail
-
create
public static ReferenceCountingExecutableStageContextFactory create(ReferenceCountingExecutableStageContextFactory.Creator creator, org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Object,java.lang.Boolean> isReleaseSynchronous)
-
get
public ExecutableStageContext get(JobInfo jobInfo)
Description copied from interface:ExecutableStageContext.FactoryGet or createExecutableStageContextfor givenJobInfo.- Specified by:
getin interfaceExecutableStageContext.Factory
-
-