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>
-
public class ThresholdActor<T> extends ProcessorBase<Object>
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.utils.actors.ProcessorBase
STATE_FORCED_SHUTDOWN, STATE_NOT_RUNNING, STATE_RUNNING, tasks
-
-
Constructor Summary
Constructors Constructor Description ThresholdActor(Executor parent, ActorListener<T> listener, int maxSize, ToIntFunction<T> sizeGetter, Runnable overThreshold, Runnable clearThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidact(T message)protected voiddoTask(Object task)voidflush()-
Methods inherited from class org.apache.activemq.artemis.utils.actors.ProcessorBase
flush, isFlushed, remaining, shutdown, shutdown, shutdownNow, status, task, yield
-
Methods inherited from class org.apache.activemq.artemis.utils.actors.HandlerBase
enter, inHandler, leave
-
-
-
-
Constructor Detail
-
ThresholdActor
public ThresholdActor(Executor parent, ActorListener<T> listener, int maxSize, ToIntFunction<T> sizeGetter, Runnable overThreshold, Runnable clearThreshold)
-
-
Method Detail
-
doTask
protected final void doTask(Object task)
- Specified by:
doTaskin classProcessorBase<Object>
-
act
public void act(T message)
-
flush
public void flush()
-
-