Class TimedCacheReloadTrigger
- java.lang.Object
-
- org.apache.flink.table.connector.source.lookup.cache.trigger.TimedCacheReloadTrigger
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,CacheReloadTrigger
@PublicEvolving public class TimedCacheReloadTrigger extends Object implements CacheReloadTrigger
A trigger that reloads at a specific time and repeats for the given interval in days.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.connector.source.lookup.cache.trigger.CacheReloadTrigger
CacheReloadTrigger.Context
-
-
Constructor Summary
Constructors Constructor Description TimedCacheReloadTrigger(LocalTime reloadTime, int reloadIntervalInDays)
TimedCacheReloadTrigger(OffsetTime reloadTime, int reloadIntervalInDays)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static TimedCacheReloadTrigger
fromConfig(ReadableConfig config)
void
open(CacheReloadTrigger.Context context)
Open the trigger.
-
-
-
Constructor Detail
-
TimedCacheReloadTrigger
public TimedCacheReloadTrigger(OffsetTime reloadTime, int reloadIntervalInDays)
-
TimedCacheReloadTrigger
public TimedCacheReloadTrigger(LocalTime reloadTime, int reloadIntervalInDays)
-
-
Method Detail
-
open
public void open(CacheReloadTrigger.Context context)
Description copied from interface:CacheReloadTrigger
Open the trigger.- Specified by:
open
in interfaceCacheReloadTrigger
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
fromConfig
public static TimedCacheReloadTrigger fromConfig(ReadableConfig config)
-
-