Interface StateRequestHandler
-
public interface StateRequestHandlerHandler forStateRequests.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.Iterable<org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleRequest.CacheToken>getCacheTokens()Retrieves a list of valid cache tokens.java.util.concurrent.CompletionStage<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder>handle(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request)Handle aBeamFnApi.StateRequestasynchronously.static StateRequestHandlerunsupported()
-
-
-
Method Detail
-
handle
java.util.concurrent.CompletionStage<org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse.Builder> handle(org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest request) throws java.lang.ExceptionHandle aBeamFnApi.StateRequestasynchronously.The handler is allowed to complete the future within the callers thread if it can be completed without blocking. Otherwise the caller should delegate to another thread to perform any blocking work completing the future when able.
Throwing an error during handling will complete the handler result
CompletionStageexceptionally.- Throws:
java.lang.Exception
-
getCacheTokens
default java.lang.Iterable<org.apache.beam.model.fnexecution.v1.BeamFnApi.ProcessBundleRequest.CacheToken> getCacheTokens()
Retrieves a list of valid cache tokens.
-
unsupported
static StateRequestHandler unsupported()
-
-