Class ReloadTriggerContext
- java.lang.Object
-
- org.apache.flink.table.runtime.functions.table.lookup.fullcache.ReloadTriggerContext
-
- All Implemented Interfaces:
CacheReloadTrigger.Context
public class ReloadTriggerContext extends Object implements CacheReloadTrigger.Context
Runtime implementation ofCacheReloadTrigger.Context
.
-
-
Constructor Summary
Constructors Constructor Description ReloadTriggerContext(Supplier<CompletableFuture<Void>> cacheLoader, Consumer<Throwable> reloadFailCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
currentProcessingTime()
Returns the current processing time.long
currentWatermark()
Returns the current event-time watermark.CompletableFuture<Void>
triggerReload()
Trigger a reload operation on the cache.
-
-
-
Constructor Detail
-
ReloadTriggerContext
public ReloadTriggerContext(Supplier<CompletableFuture<Void>> cacheLoader, Consumer<Throwable> reloadFailCallback)
-
-
Method Detail
-
currentProcessingTime
public long currentProcessingTime()
Description copied from interface:CacheReloadTrigger.Context
Returns the current processing time.- Specified by:
currentProcessingTime
in interfaceCacheReloadTrigger.Context
-
currentWatermark
public long currentWatermark()
Description copied from interface:CacheReloadTrigger.Context
Returns the current event-time watermark.- Specified by:
currentWatermark
in interfaceCacheReloadTrigger.Context
-
triggerReload
public CompletableFuture<Void> triggerReload()
Description copied from interface:CacheReloadTrigger.Context
Trigger a reload operation on the cache. Runtime will wait for the first load to complete to start an execution of lookup join.- Specified by:
triggerReload
in interfaceCacheReloadTrigger.Context
-
-