public class DefaultOperatorStateBackendBuilder extends Object implements StateBackendBuilder<DefaultOperatorStateBackend,BackendBuildingException>
DefaultOperatorStateBackend
which handles all necessary initializations
and clean ups.Modifier and Type | Field and Description |
---|---|
protected boolean |
asynchronousSnapshots
Flag to de/activate asynchronous snapshots.
|
protected CloseableRegistry |
cancelStreamRegistry |
protected ExecutionConfig |
executionConfig
The execution configuration.
|
protected Collection<OperatorStateHandle> |
restoreStateHandles
State handles for restore.
|
protected ClassLoader |
userClassloader
The user code classloader.
|
Constructor and Description |
---|
DefaultOperatorStateBackendBuilder(ClassLoader userClassloader,
ExecutionConfig executionConfig,
boolean asynchronousSnapshots,
Collection<OperatorStateHandle> stateHandles,
CloseableRegistry cancelStreamRegistry) |
@VisibleForTesting protected final ClassLoader userClassloader
@VisibleForTesting protected final ExecutionConfig executionConfig
@VisibleForTesting protected final boolean asynchronousSnapshots
@VisibleForTesting protected final Collection<OperatorStateHandle> restoreStateHandles
@VisibleForTesting protected final CloseableRegistry cancelStreamRegistry
public DefaultOperatorStateBackendBuilder(ClassLoader userClassloader, ExecutionConfig executionConfig, boolean asynchronousSnapshots, Collection<OperatorStateHandle> stateHandles, CloseableRegistry cancelStreamRegistry)
public DefaultOperatorStateBackend build() throws BackendBuildingException
build
in interface StateBackendBuilder<DefaultOperatorStateBackend,BackendBuildingException>
BackendBuildingException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.