T
- This type parameter specifies the type of data which may be passed
into the deferred splitter by the input deferred event object.public interface DeferredSplitter<T>
Modifier and Type | Method and Description |
---|---|
void |
addInputDeferred(Deferred<T> deferred)
Attaches the input deferred event object.
|
Deferred<T> |
getOutputDeferred()
Obtains a handle on a unique output deferred event object.
|
void addInputDeferred(Deferred<T> deferred) throws DeferredTerminationException
deferred
- This is the input deferred event object which will be used to
trigger the callbacks on the splitter.DeferredTerminationException
- This exception will be thrown if an attempt is made to add more
than one deferrable event object as an input. It will also be
generated if the callback chain associated with the deferred
event object has already been terminated.Deferred<T> getOutputDeferred()
Deferred
interface is added to the splitter and
returned to the caller.