Class ThresholdActor<T>
java.lang.Object
org.apache.activemq.artemis.utils.actors.HandlerBase
org.apache.activemq.artemis.utils.actors.ProcessorBase<Object>
org.apache.activemq.artemis.utils.actors.ThresholdActor<T>
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.utils.actors.ProcessorBase
requestedShutdown, STATE_FORCED_SHUTDOWN, STATE_NOT_RUNNING, STATE_RUNNING, tasks -
Constructor Summary
ConstructorsConstructorDescriptionThresholdActor(Executor parent, ActorListener<T> listener, int maxSize, ToIntFunction<T> sizeGetter, Runnable overThreshold, Runnable clearThreshold) -
Method Summary
Methods inherited from class org.apache.activemq.artemis.utils.actors.ProcessorBase
flush, isFlushed, remaining, shutdown, shutdown, shutdownNow, status, task, yieldMethods inherited from class org.apache.activemq.artemis.utils.actors.HandlerBase
enter, inHandler, leave
-
Constructor Details
-
ThresholdActor
public ThresholdActor(Executor parent, ActorListener<T> listener, int maxSize, ToIntFunction<T> sizeGetter, Runnable overThreshold, Runnable clearThreshold)
-
-
Method Details
-
doTask
- Specified by:
doTaskin classProcessorBase<Object>
-
act
-
flush
public void flush()- Overrides:
flushin classProcessorBase<Object>
-
requestShutdown
public void requestShutdown()
-