@FunctionalInterface public static interface GlobalRequestFuture.ReplyHandler
ReplyHandler is invoked asynchronously when the reply for a request with want-reply = true is
received. It is not invoked if the request could not be sent; to catch such cases
WaitableFuture.await(CancelOption[]) the GlobalRequestFuture and check
GlobalRequestFuture.getException().| Modifier and Type | Method and Description |
|---|---|
void |
accept(int cmd,
Buffer buffer)
Invoked by the framework upon reception of the reply.
|
void accept(int cmd,
Buffer buffer)
want-reply = false, it is invoked with SshConstants.SSH_MSG_REQUEST_SUCCESS and an empty
buffer after the request was successfully sent.cmd - the command received, can be one of SshConstants.SSH_MSG_REQUEST_SUCCESS,
SshConstants.SSH_MSG_UNIMPLEMENTED, or SshConstants.SSH_MSG_REQUEST_FAILUREbuffer - the Buffer receivedCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.