Interface Evictor.EvictorContext
public static interface Evictor.EvictorContext
A context object that is given to
Evictor methods.-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current processing time.longReturns the current watermark time.org.apache.flink.metrics.MetricGroupReturns the metric group for thisEvictor.
-
Method Details
-
getCurrentProcessingTime
long getCurrentProcessingTime()Returns the current processing time. -
getMetricGroup
org.apache.flink.metrics.MetricGroup getMetricGroup()Returns the metric group for thisEvictor. This is the same metric group that would be returned fromRuntimeContext.getMetricGroup()in a user function.You must not call methods that create metric objects (such as
MetricGroup.counter(int)multiple times but instead call once and store the metric object in a field. -
getCurrentWatermark
long getCurrentWatermark()Returns the current watermark time.
-