public interface GrpcServiceContext extends ConnectionContext, GrpcMetadata
Modifier and Type | Interface and Description |
---|---|
static interface |
GrpcServiceContext.GrpcProtocol |
ConnectionInfo.Protocol
Modifier and Type | Method and Description |
---|---|
GrpcExecutionContext |
executionContext()
Get the
ExecutionContext for this ConnectionInfo . |
GrpcServiceContext.GrpcProtocol |
protocol()
Get the
ConnectionInfo.Protocol for this ConnectionInfo . |
java.util.Set<GrpcMessageEncoding> |
supportedEncodings()
The set of
GrpcMessageEncoding encoding used for this
gRPC call. |
localAddress, remoteAddress, socketOption, sslSession
onClose
closeAsync, closeAsyncGracefully
path
GrpcExecutionContext executionContext()
ConnectionInfo
ExecutionContext
for this ConnectionInfo
.
The ExecutionContext.ioExecutor()
will represent the thread responsible for IO for this
ConnectionInfo
. Note that this maybe different that what was used to create this object because
at this time a specific IoExecutor
has been selected.
executionContext
in interface ConnectionInfo
ExecutionContext
for this ConnectionInfo
.GrpcServiceContext.GrpcProtocol protocol()
ConnectionInfo
ConnectionInfo.Protocol
for this ConnectionInfo
.protocol
in interface ConnectionInfo
ConnectionInfo.Protocol
for this ConnectionInfo
.java.util.Set<GrpcMessageEncoding> supportedEncodings()
GrpcMessageEncoding
encoding used for this
gRPC call.GrpcMessageEncoding
encoding used for this
gRPC call