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.YieldConstructs aTask.Yieldfor the specified duration.booleanObtains theDurationfor theTask.Yield.inthashCode()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 theDurationfor theTask.Yield.- Returns:
- the
Duration
-
atLeast
Constructs aTask.Yieldfor the specified duration.- Parameters:
duration- theDuration- Returns:
- a
Task.Yield
-
equals
-
hashCode
public int hashCode()
-