Class Task.Yield
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oracle.coherence.concurrent.executor.Task.Yield
- All Implemented Interfaces:
Serializable
An exception signalling the execution of a
Task
by an Executor
is to be suspended and resumed at some later point in time, typically by
the same Executor
.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Task.Yield
Constructs aTask.Yield
for the specified duration.boolean
Obtains theDuration
for theTask.Yield
.int
hashCode()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
m_duration
The minimum duration to yield.
-
-
Method Details
-
getDuration
Obtains theDuration
for theTask.Yield
.- Returns:
- the
Duration
-
atLeast
Constructs aTask.Yield
for the specified duration.- Parameters:
duration
- theDuration
- Returns:
- a
Task.Yield
-
equals
-
hashCode
public int hashCode()
-