R - Request的子类型public abstract class Response<C extends Context,R extends Request<C>>
extends java.lang.Object
详情见: http://www.redkale.org
| 限定符和类型 | 字段和说明 |
|---|---|
protected AsyncConnection |
channel |
protected C |
context |
protected java.util.function.BiConsumer<R,Response<C,R>> |
recycleListener |
protected R |
request |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
finish() |
void |
finish(boolean kill) |
void |
finish(boolean kill,
java.nio.ByteBuffer... buffers) |
void |
finish(boolean kill,
java.nio.ByteBuffer buffer) |
void |
finish(java.nio.ByteBuffer... buffers) |
void |
finish(java.nio.ByteBuffer buffer) |
C |
getContext() |
protected void |
init(AsyncConnection channel) |
protected void |
prepare() |
protected boolean |
recycle() |
protected void |
refuseAlive() |
protected AsyncConnection |
removeChannel() |
protected <A> void |
send(java.nio.ByteBuffer[] buffers,
A attachment,
java.nio.channels.CompletionHandler<java.lang.Integer,A> handler) |
protected <A> void |
send(java.nio.ByteBuffer buffer,
A attachment,
java.nio.channels.CompletionHandler<java.lang.Integer,A> handler) |
void |
setRecycleListener(java.util.function.BiConsumer<R,Response<C,R>> recycleListener) |
protected AsyncConnection channel
protected AsyncConnection removeChannel()
protected void prepare()
protected boolean recycle()
protected void refuseAlive()
protected void init(AsyncConnection channel)
public void setRecycleListener(java.util.function.BiConsumer<R,Response<C,R>> recycleListener)
public void finish()
public void finish(boolean kill)
public void finish(java.nio.ByteBuffer buffer)
public void finish(boolean kill,
java.nio.ByteBuffer buffer)
public void finish(java.nio.ByteBuffer... buffers)
public void finish(boolean kill,
java.nio.ByteBuffer... buffers)
protected <A> void send(java.nio.ByteBuffer buffer,
A attachment,
java.nio.channels.CompletionHandler<java.lang.Integer,A> handler)
protected <A> void send(java.nio.ByteBuffer[] buffers,
A attachment,
java.nio.channels.CompletionHandler<java.lang.Integer,A> handler)
public C getContext()