public class ReloadTriggerContext extends Object implements CacheReloadTrigger.Context
CacheReloadTrigger.Context
.Constructor and Description |
---|
ReloadTriggerContext(Supplier<CompletableFuture<Void>> cacheLoader,
Consumer<Throwable> reloadFailCallback) |
Modifier and Type | Method and 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.
|
public ReloadTriggerContext(Supplier<CompletableFuture<Void>> cacheLoader, Consumer<Throwable> reloadFailCallback)
public long currentProcessingTime()
CacheReloadTrigger.Context
currentProcessingTime
in interface CacheReloadTrigger.Context
public long currentWatermark()
CacheReloadTrigger.Context
currentWatermark
in interface CacheReloadTrigger.Context
public CompletableFuture<Void> triggerReload()
CacheReloadTrigger.Context
triggerReload
in interface CacheReloadTrigger.Context
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.