T
- concrete type of ApplicationContainerContext
created by this factorypublic interface ApplicationContainerContextFactory<T extends ApplicationContainerContext>
extends java.io.Serializable
ApplicationContainerContext
instances for a SamzaApplication
during
container initialization.
Use ApplicationDescriptor.withApplicationContainerContextFactory(org.apache.samza.context.ApplicationContainerContextFactory<?>)
to provide the
ApplicationContainerContextFactory
. Use Context.getApplicationContainerContext()
to get the created
ApplicationContainerContext
instance for the current container.
The ApplicationContainerContextFactory
implementation must be Serializable
.
Modifier and Type | Method and Description |
---|---|
T |
create(JobContext jobContext,
ContainerContext containerContext)
Creates an instance of the application-defined
ApplicationContainerContext . |
T create(JobContext jobContext, ContainerContext containerContext)
ApplicationContainerContext
.jobContext
- framework-provided job contextcontainerContext
- framework-provided container contextApplicationContainerContext