Class NettyServer.ListenSocket
java.lang.Object
io.grpc.netty.NettyServer.ListenSocket
- All Implemented Interfaces:
InternalInstrumented<InternalChannelz.SocketStats>, InternalWithLogId
- Enclosing class:
NettyServer
private static final class NettyServer.ListenSocket
extends Object
implements InternalInstrumented<InternalChannelz.SocketStats>
A class that can answer channelz queries about the server listen sockets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.netty.channel.Channelprivate final InternalLogId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLogId()Returns an ID that is primarily used in debug logs.com.google.common.util.concurrent.ListenableFuture<InternalChannelz.SocketStats> getStats()Returns the stats object.toString()
-
Field Details
-
id
-
ch
private final io.netty.channel.Channel ch
-
-
Constructor Details
-
ListenSocket
ListenSocket(io.netty.channel.Channel ch)
-
-
Method Details
-
getStats
Description copied from interface:InternalInstrumentedReturns the stats object.- Specified by:
getStatsin interfaceInternalInstrumented<InternalChannelz.SocketStats>
-
getLogId
Description copied from interface:InternalWithLogIdReturns an ID that is primarily used in debug logs. It usually contains the class name and a numeric ID that is unique among the instances.The subclasses of this interface usually want to include the log ID in their
Object.toString()results.- Specified by:
getLogIdin interfaceInternalWithLogId
-
toString
-