public class NettyChannelContext.Properties extends Object implements ContextProperties
Modifier | Constructor and Description |
---|---|
protected |
Properties() |
|
Properties(NettyChannelContext.Properties properties) |
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.
|
protected void |
onPropertiesReset() |
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.
|
protected Properties()
public Properties(NettyChannelContext.Properties properties)
public boolean autoRelease()
ContextProperties
autoRelease.
autoRelease
in interface ContextProperties
public void autoRelease(boolean autoRelease)
ContextProperties
autoRelease.
autoRelease
in interface ContextProperties
autoRelease
- a booleanpublic InetSocketAddress localAddress()
ContextProperties
localAddress.
localAddress
in interface ContextProperties
InetSocketAddress
objectpublic InetSocketAddress remoteAddress()
ContextProperties
remoteAddress.
remoteAddress
in interface ContextProperties
InetSocketAddress
objectpublic <V extends AbstractRequest> V request()
ContextProperties
request.
request
in interface ContextProperties
V
- a V classpublic void request(AbstractRequest request)
ContextProperties
request.
request
in interface ContextProperties
request
- a AbstractRequest
objectpublic <V extends AbstractResponse> V response()
ContextProperties
response.
response
in interface ContextProperties
V
- a V classpublic Throwable error()
ContextProperties
error.
error
in interface ContextProperties
Throwable
objectpublic boolean writeInProgress()
ContextProperties
writeInProgress.
writeInProgress
in interface ContextProperties
public boolean writeDone()
ContextProperties
writeDone.
writeDone
in interface ContextProperties
public boolean writeInError()
ContextProperties
writeInError.
writeInError
in interface ContextProperties
public CompletableFuture<NettyChannelContext> beginWrite()
ContextProperties
beginWrite.
beginWrite
in interface ContextProperties
CompletableFuture
objectpublic CompletableFuture<NettyChannelContext> endWrite()
ContextProperties
endWrite.
endWrite
in interface ContextProperties
CompletableFuture
objectpublic CompletableFuture<NettyChannelContext> endWrite(Throwable error)
ContextProperties
endWrite.
endWrite
in interface ContextProperties
error
- a Throwable
objectCompletableFuture
objectpublic <A extends AbstractRequest> Envelope<A> envelope()
ContextProperties
envelope.
envelope
in interface ContextProperties
A
- a A classEnvelope
objectpublic <V extends AbstractResponse> CompletableFuture<V> responsePromise()
ContextProperties
responsePromise.
responsePromise
in interface ContextProperties
V
- a V classCompletableFuture
objectpublic void reset()
ContextProperties
reset
in interface ContextProperties
protected void onPropertiesReset()
Copyright © 2016–2024. All rights reserved.