public class ScheduleState
extends java.lang.Object
| Constructor and Description |
|---|
ScheduleState() |
| Modifier and Type | Method and Description |
|---|---|
int |
decrementActiveThreadCount() |
int |
getActiveThreadCount() |
java.util.Set<java.util.concurrent.ScheduledFuture<?>> |
getFutures() |
long |
getLastStopTime() |
int |
incrementActiveThreadCount() |
boolean |
isScheduled() |
boolean |
mustCallOnStoppedMethods()
Maintains an AtomicBoolean so that the first thread to call this method after a Processor is no longer
scheduled to run will receive a
true and MUST call the methods annotated with
@OnStopped |
void |
replaceFuture(java.util.concurrent.ScheduledFuture<?> oldFuture,
java.util.concurrent.ScheduledFuture<?> newFuture) |
void |
setFutures(java.util.Collection<java.util.concurrent.ScheduledFuture<?>> newFutures)
Establishes the list of relevant futures for this processor.
|
java.lang.String |
toString() |
public int incrementActiveThreadCount()
public int decrementActiveThreadCount()
public int getActiveThreadCount()
public boolean isScheduled()
public long getLastStopTime()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean mustCallOnStoppedMethods()
true and MUST call the methods annotated with
@OnStoppedtrue if the caller is required to call Processor methods annotated withpublic void setFutures(java.util.Collection<java.util.concurrent.ScheduledFuture<?>> newFutures)
newFutures - futurespublic void replaceFuture(java.util.concurrent.ScheduledFuture<?> oldFuture,
java.util.concurrent.ScheduledFuture<?> newFuture)
public java.util.Set<java.util.concurrent.ScheduledFuture<?>> getFutures()