Class ReloadTriggerContext
- java.lang.Object
-
- org.apache.flink.table.runtime.functions.table.lookup.fullcache.ReloadTriggerContext
-
- All Implemented Interfaces:
org.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger.Context
public class ReloadTriggerContext extends Object implements org.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger.Context
Runtime implementation ofCacheReloadTrigger.Context.
-
-
Constructor Summary
Constructors Constructor Description ReloadTriggerContext(java.util.function.Supplier<CompletableFuture<Void>> cacheLoader, java.util.function.Consumer<Throwable> reloadFailCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcurrentProcessingTime()longcurrentWatermark()CompletableFuture<Void>triggerReload()
-
-
-
Constructor Detail
-
ReloadTriggerContext
public ReloadTriggerContext(java.util.function.Supplier<CompletableFuture<Void>> cacheLoader, java.util.function.Consumer<Throwable> reloadFailCallback)
-
-
Method Detail
-
currentProcessingTime
public long currentProcessingTime()
- Specified by:
currentProcessingTimein interfaceorg.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger.Context
-
currentWatermark
public long currentWatermark()
- Specified by:
currentWatermarkin interfaceorg.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger.Context
-
triggerReload
public CompletableFuture<Void> triggerReload()
- Specified by:
triggerReloadin interfaceorg.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger.Context
-
-