Class DispatcherOperationCaches
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.DispatcherOperationCaches
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.flink.util.AutoCloseableAsync
public class DispatcherOperationCaches extends Object implements org.apache.flink.util.AutoCloseableAsync
Encapsulates caches for results of asynchronous operations triggered by theDispatcher
.
-
-
Constructor Summary
Constructors Constructor Description DispatcherOperationCaches()
DispatcherOperationCaches(Duration cacheDuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>
closeAsync()
CompletedOperationCache<AsynchronousJobOperationKey,Long>
getCheckpointTriggerCache()
CompletedOperationCache<AsynchronousJobOperationKey,String>
getSavepointTriggerCache()
-
-
-
Constructor Detail
-
DispatcherOperationCaches
@VisibleForTesting public DispatcherOperationCaches()
-
DispatcherOperationCaches
@VisibleForTesting public DispatcherOperationCaches(Duration cacheDuration)
-
-
Method Detail
-
getSavepointTriggerCache
public CompletedOperationCache<AsynchronousJobOperationKey,String> getSavepointTriggerCache()
-
getCheckpointTriggerCache
public CompletedOperationCache<AsynchronousJobOperationKey,Long> getCheckpointTriggerCache()
-
closeAsync
public CompletableFuture<Void> closeAsync()
- Specified by:
closeAsync
in interfaceorg.apache.flink.util.AutoCloseableAsync
-
-