public interface Callable<V,T extends Throwable> extends Serializable, RoleSensitive
Channel| Modifier and Type | Method and Description |
|---|---|
V |
call()
Performs computation and returns the result,
or throws some exception.
|
default Channel |
getChannelOrFail()
Gets a channel for the operation inside callable.
|
default Channel |
getOpenChannelOrFail()
Gets an open channel, which is ready to accept commands.
|
checkRolesV call() throws T extends Throwable
@Nonnull default Channel getChannelOrFail() throws ChannelStateException
ChannelStateException - Channel is not associated with the thread@Nonnull default Channel getOpenChannelOrFail() throws ChannelStateException
ChannelStateException - The channel is closing down or has been closed.
Also happens if the channel is not associated with the thread at all.Copyright © 2004–2018. All rights reserved.