public interface Callable<V,T extends Throwable> extends Serializable, RoleSensitive
You probably don't want to implement this directly in Jenkins, instead choose
NotReallyRoleSensitiveCallable, or (in rare cases)
|Modifier and Type||Method and Description|
Performs computation and returns the result, or throws some exception.
Gets a channel for the operation inside callable.
Gets an open channel, which is ready to accept commands.
@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–2021. All rights reserved.