public interface Channel
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Channel.InputChannel<IN>
Interface defining an input channel.
|
static interface |
Channel.OutputChannel<OUT>
Interface defining an output channel, that is the channel used to read the routine invocation
output data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Closes the channel and abort the transfer of data, thus aborting the routine invocation.
|
boolean |
abort(Throwable reason)
Closes the channel and abort the transfer of data, thus aborting the routine invocation and
causing the specified throwable to be passed as the abortion reason.
The throwable, unless it extends the base RoutineException, will be wrapped as the cause of an
AbortException instance. |
boolean |
isEmpty()
Checks if the channel is empty, that is, no data is stored in it.
|
boolean |
isOpen()
Checks if the channel is open, that is, more data are expected to be passed to it.
|
boolean abort()
AbortException will be passed
as the abortion reason.
Note that, in case the channel was already closed, the call to this method has no effect.boolean abort(@Nullable
Throwable reason)
RoutineException, will be wrapped as the cause of an
AbortException instance.
Note that, in case the channel was already closed, the call to this method has no effect.reason - the throwable object identifying the reason of the invocation abortion.boolean isEmpty()
boolean isOpen()