public class ThresholdActor<T> extends ProcessorBase<Object>
STATE_FORCED_SHUTDOWN, STATE_NOT_RUNNING, STATE_RUNNING, tasks| Constructor and Description |
|---|
ThresholdActor(Executor parent,
ActorListener<T> listener,
int maxSize,
ToIntFunction<T> sizeGetter,
Runnable overThreshold,
Runnable clearThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
act(T message) |
protected void |
doTask(Object task) |
void |
flush() |
flush, isFlushed, remaining, shutdown, shutdown, shutdownNow, status, taskenter, inHandler, leavepublic ThresholdActor(Executor parent, ActorListener<T> listener, int maxSize, ToIntFunction<T> sizeGetter, Runnable overThreshold, Runnable clearThreshold)
protected final void doTask(Object task)
doTask in class ProcessorBase<Object>public void act(T message)
public void flush()
Copyright © 2022 The Apache Software Foundation. All rights reserved.