Package org.apache.sshd.common.future
Interface GlobalRequestFuture.ReplyHandler
-
- Enclosing class:
- GlobalRequestFuture
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface GlobalRequestFuture.ReplyHandler
AReplyHandleris invoked asynchronously when the reply for a request withwant-reply = trueis received. It is not invoked if the request could not be sent; to catch such casesWaitableFuture.await(CancelOption[])theGlobalRequestFutureand checkGlobalRequestFuture.getException().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(int cmd, Buffer buffer)Invoked by the framework upon reception of the reply.
-
-
-
Method Detail
-
accept
void accept(int cmd, Buffer buffer)Invoked by the framework upon reception of the reply. If the global request was sent withwant-reply = false, it is invoked withSshConstants.SSH_MSG_REQUEST_SUCCESSand an empty buffer after the request was successfully sent.- Parameters:
cmd- the command received, can be one ofSshConstants.SSH_MSG_REQUEST_SUCCESS,SshConstants.SSH_MSG_UNIMPLEMENTED, orSshConstants.SSH_MSG_REQUEST_FAILUREbuffer- theBufferreceived
-
-