|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandFactory
Command factory
| Method Summary | ||
|---|---|---|
|
createConnectionClosedResponse(InetSocketAddress address,
String message)
|
|
|
createExceptionResponse(int id,
ResponseStatus status)
|
|
|
createExceptionResponse(int id,
String errMsg)
|
|
|
createExceptionResponse(int id,
Throwable t,
String errMsg)
|
|
|
createRequestCommand(Object requestObject)
create a request command with request object |
|
|
createResponse(Object responseObject,
RemotingCommand requestCmd)
create a normal response with response object |
|
|
createSendFailedResponse(InetSocketAddress address,
Throwable throwable)
|
|
|
createTimeoutResponse(InetSocketAddress address)
|
|
| Method Detail |
|---|
<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 createTimeoutResponse(InetSocketAddress address)
<T extends RemotingCommand> T createSendFailedResponse(InetSocketAddress address,
Throwable throwable)
<T extends RemotingCommand> T createConnectionClosedResponse(InetSocketAddress address,
String message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||