Package io.servicetalk.grpc.api
Interface GrpcServiceContext
-
- All Superinterfaces:
AsyncCloseable,ConnectionContext,ConnectionInfo,GrpcMetadata,ListenableAsyncCloseable
public interface GrpcServiceContext extends ConnectionContext, GrpcMetadata
A gRPC service context.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGrpcServiceContext.GrpcProtocol-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ConnectionInfo
ConnectionInfo.Protocol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GrpcExecutionContextexecutionContext()Get theExecutionContextfor thisConnectionInfo.GrpcServiceContext.GrpcProtocolprotocol()Get theConnectionInfo.Protocolfor thisConnectionInfo.java.util.List<ContentCodec>supportedMessageCodings()TheContentCodeccodings available for this gRPC call.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
Methods inherited from interface io.servicetalk.transport.api.ConnectionInfo
localAddress, remoteAddress, socketOption, sslSession
-
Methods inherited from interface io.servicetalk.grpc.api.GrpcMetadata
path
-
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose
-
-
-
-
Method Detail
-
executionContext
GrpcExecutionContext executionContext()
Description copied from interface:ConnectionInfoGet theExecutionContextfor thisConnectionInfo.The
ExecutionContext.ioExecutor()will represent the thread responsible for IO for thisConnectionInfo. Note that this maybe different that what was used to create this object because at this time a specificIoExecutorhas been selected.- Specified by:
executionContextin interfaceConnectionInfo- Returns:
- the
ExecutionContextfor thisConnectionInfo.
-
protocol
GrpcServiceContext.GrpcProtocol protocol()
Description copied from interface:ConnectionInfoGet theConnectionInfo.Protocolfor thisConnectionInfo.- Specified by:
protocolin interfaceConnectionInfo- Returns:
- the
ConnectionInfo.Protocolfor thisConnectionInfo.
-
supportedMessageCodings
java.util.List<ContentCodec> supportedMessageCodings()
TheContentCodeccodings available for this gRPC call.- Returns:
- the
ContentCodeccodings available for this gRPC call.
-
-