- java.lang.Object
-
- org.redkale.net.Response<SncpContext,SncpRequest>
-
- org.redkale.net.sncp.SncpResponse
-
- 直接已知子类:
SncpMessageResponse
public class SncpResponse extends Response<SncpContext,SncpRequest>
详情见: https://redkale.org- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected CompletionHandler
paramAsyncHandler
protected Type
paramHandlerResultType
protected CompletionHandler
realHandler
static int
RETCODE_ILLACTIONID
static int
RETCODE_ILLSERVICEID
static int
RETCODE_ILLSERVICEVER
static int
RETCODE_THROWEXCEPTION
protected ProtobufWriter
writer
-
从类继承的字段 org.redkale.net.Response
afterFinishListeners, channel, context, errorHandler, filter, inNonBlocking, output, readRegistered, recycleListener, request, responseConsumer, responseSupplier, servlet, thread, workExecutor
-
-
构造器概要
构造器 限定符 构造器 说明 protected
SncpResponse(SncpContext context, SncpRequest request)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
defaultError(Throwable t)
void
finish(int retcode, ProtobufWriter out)
void
finish(Type type, Object result)
void
finishFuture(Type futureResultType, Future future)
void
finishVoid()
<T extends CompletionHandler>
TgetParamAsyncHandler()
static String
getRetCodeInfo(int retcode)
protected ExecutorService
getWorkExecutor()
ProtobufWriter
getWriter()
protected boolean
inNonBlocking()
SncpResponse
paramAsyncHandler(Class<? extends CompletionHandler> paramHandlerType, Type paramHandlerResultType)
protected void
prepare()
protected boolean
recycle()
protected SncpRequest
request()
protected void
updateNonBlocking(boolean nonBlocking)
protected void
writeHeader(ByteArray array, int bodyLength, int retcode)
-
从类继承的方法 org.redkale.net.Response
addAfterFinishListener, codecError, completeFinishBytes, errorHandler, finish, finish, finish, finish, finish, finish, finish, finishBuffer, finishBuffer, finishBuffers, finishBuffers, finishError, getContext, getOutput, init, isClosed, nextEvent, recycleListener, refuseAlive, removeChannel, send, send, send, setFilter, thenEvent, thenEvent
-
-
-
-
字段详细资料
-
RETCODE_ILLSERVICEID
public static final int RETCODE_ILLSERVICEID
- 另请参阅:
- 常量字段值
-
RETCODE_ILLSERVICEVER
public static final int RETCODE_ILLSERVICEVER
- 另请参阅:
- 常量字段值
-
RETCODE_ILLACTIONID
public static final int RETCODE_ILLACTIONID
- 另请参阅:
- 常量字段值
-
RETCODE_THROWEXCEPTION
public static final int RETCODE_THROWEXCEPTION
- 另请参阅:
- 常量字段值
-
writer
protected final ProtobufWriter writer
-
realHandler
protected final CompletionHandler realHandler
-
paramHandlerResultType
protected Type paramHandlerResultType
-
paramAsyncHandler
protected CompletionHandler paramAsyncHandler
-
-
构造器详细资料
-
SncpResponse
protected SncpResponse(SncpContext context, SncpRequest request)
-
-
方法详细资料
-
getRetCodeInfo
public static String getRetCodeInfo(int retcode)
-
paramAsyncHandler
public SncpResponse paramAsyncHandler(Class<? extends CompletionHandler> paramHandlerType, Type paramHandlerResultType)
-
getParamAsyncHandler
@ClassDepends public <T extends CompletionHandler> T getParamAsyncHandler()
-
prepare
protected void prepare()
- 覆盖:
prepare
在类中Response<SncpContext,SncpRequest>
-
recycle
protected boolean recycle()
- 覆盖:
recycle
在类中Response<SncpContext,SncpRequest>
-
getWriter
public ProtobufWriter getWriter()
-
request
protected SncpRequest request()
-
writeHeader
protected void writeHeader(ByteArray array, int bodyLength, int retcode)
-
getWorkExecutor
protected ExecutorService getWorkExecutor()
- 覆盖:
getWorkExecutor
在类中Response<SncpContext,SncpRequest>
-
updateNonBlocking
protected void updateNonBlocking(boolean nonBlocking)
- 覆盖:
updateNonBlocking
在类中Response<SncpContext,SncpRequest>
-
inNonBlocking
protected boolean inNonBlocking()
- 覆盖:
inNonBlocking
在类中Response<SncpContext,SncpRequest>
-
defaultError
protected void defaultError(Throwable t)
- 覆盖:
defaultError
在类中Response<SncpContext,SncpRequest>
-
finishVoid
public final void finishVoid()
-
finish
public void finish(int retcode, ProtobufWriter out)
-
-