public interface CommandFactory
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends RemotingCommand> |
createConnectionClosedResponse(InetSocketAddress address,
String message) |
<T extends RemotingCommand> |
createExceptionResponse(int id,
ResponseStatus status) |
<T extends RemotingCommand> |
createExceptionResponse(int id,
ResponseStatus status,
Throwable t) |
<T extends RemotingCommand> |
createExceptionResponse(int id,
String errMsg) |
<T extends RemotingCommand> |
createExceptionResponse(int id,
Throwable t,
String errMsg) |
<T extends RemotingCommand> |
createRequestCommand(Object requestObject)
create a request command with request object
|
<T extends RemotingCommand> |
createResponse(Object responseObject,
RemotingCommand requestCmd)
create a normal response with response object
|
<T extends RemotingCommand> |
createSendFailedResponse(InetSocketAddress address,
Throwable throwable) |
<T extends RemotingCommand> |
createTimeoutResponse(InetSocketAddress address) |
<T extends RemotingCommand> T createRequestCommand(Object requestObject)
T - requestObject - the request object included in request command<T extends RemotingCommand> T createResponse(Object responseObject, RemotingCommand requestCmd)
T - responseObject - requestCmd - <T extends RemotingCommand> T createExceptionResponse(int id, String errMsg)
<T extends RemotingCommand> T createExceptionResponse(int id, Throwable t, String errMsg)
<T extends RemotingCommand> T createExceptionResponse(int id, ResponseStatus status)
<T extends RemotingCommand> T createExceptionResponse(int id, ResponseStatus status, Throwable t)
<T extends RemotingCommand> T createTimeoutResponse(InetSocketAddress address)
<T extends RemotingCommand> T createSendFailedResponse(InetSocketAddress address, Throwable throwable)
<T extends RemotingCommand> T createConnectionClosedResponse(InetSocketAddress address, String message)
Copyright © 2020. All rights reserved.