public interface ContextProperties
ContextProperties interface.
Modifier and Type | Method and Description |
---|---|
boolean |
autoRelease()
autoRelease.
|
void |
autoRelease(boolean autoRelease)
autoRelease.
|
CompletableFuture<NettyChannelContext> |
beginWrite()
beginWrite.
|
CompletableFuture<NettyChannelContext> |
endWrite()
endWrite.
|
CompletableFuture<NettyChannelContext> |
endWrite(Throwable error)
endWrite.
|
<A extends AbstractRequest> |
envelope()
envelope.
|
Throwable |
error()
error.
|
InetSocketAddress |
localAddress()
localAddress.
|
InetSocketAddress |
remoteAddress()
remoteAddress.
|
<V extends AbstractRequest> |
request()
request.
|
void |
request(AbstractRequest request)
request.
|
void |
reset()
Reset context properties.
|
<V extends AbstractResponse> |
response()
response.
|
<V extends AbstractResponse> |
responsePromise()
responsePromise.
|
boolean |
writeDone()
writeDone.
|
boolean |
writeInError()
writeInError.
|
boolean |
writeInProgress()
writeInProgress.
|
boolean autoRelease()
autoRelease.
void autoRelease(boolean autoRelease)
autoRelease.
autoRelease
- a booleanInetSocketAddress localAddress()
localAddress.
InetSocketAddress
objectInetSocketAddress remoteAddress()
remoteAddress.
InetSocketAddress
object<V extends AbstractRequest> V request()
request.
V
- a V classvoid request(AbstractRequest request)
request.
request
- a AbstractRequest
object<V extends AbstractResponse> V response()
response.
V
- a V classboolean writeInProgress()
writeInProgress.
boolean writeDone()
writeDone.
boolean writeInError()
writeInError.
CompletableFuture<NettyChannelContext> beginWrite()
beginWrite.
CompletableFuture
objectCompletableFuture<NettyChannelContext> endWrite()
endWrite.
CompletableFuture
objectCompletableFuture<NettyChannelContext> endWrite(Throwable error)
endWrite.
error
- a Throwable
objectCompletableFuture
object<A extends AbstractRequest> Envelope<A> envelope()
envelope.
A
- a A classEnvelope
object<V extends AbstractResponse> CompletableFuture<V> responsePromise()
responsePromise.
V
- a V classCompletableFuture
objectvoid reset()
Copyright © 2016–2024. All rights reserved.