Package io.grpc.netty
Class InternalNettyServerBuilder
- java.lang.Object
-
- io.grpc.netty.InternalNettyServerBuilder
-
@Internal public final class InternalNettyServerBuilder extends java.lang.Object
InternalNettyServerBuilder
accessor. This is intended for usage internal to the gRPC team. If you *really* think you need to use this, contact the gRPC team first.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
InternalNettyServerBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
eagAttributes(NettyServerBuilder builder, Attributes eagAttributes)
Sets the EAG attributes available to protocol negotiators.static void
setForceHeapBuffer(NettyServerBuilder builder, boolean value)
static void
setStatsEnabled(NettyServerBuilder builder, boolean value)
static void
setStatsRecordRealTimeMetrics(NettyServerBuilder builder, boolean value)
static void
setStatsRecordStartedRpcs(NettyServerBuilder builder, boolean value)
static void
setTracingEnabled(NettyServerBuilder builder, boolean value)
static void
useNioTransport(NettyServerBuilder builder)
SetsChannel
andEventLoopGroup
s to Nio.
-
-
-
Method Detail
-
setStatsEnabled
public static void setStatsEnabled(NettyServerBuilder builder, boolean value)
-
setStatsRecordStartedRpcs
public static void setStatsRecordStartedRpcs(NettyServerBuilder builder, boolean value)
-
setStatsRecordRealTimeMetrics
public static void setStatsRecordRealTimeMetrics(NettyServerBuilder builder, boolean value)
-
setTracingEnabled
public static void setTracingEnabled(NettyServerBuilder builder, boolean value)
-
setForceHeapBuffer
public static void setForceHeapBuffer(NettyServerBuilder builder, boolean value)
-
useNioTransport
public static void useNioTransport(NettyServerBuilder builder)
SetsChannel
andEventLoopGroup
s to Nio. A major benefit over using existing setters is gRPC will manage the life cycle ofEventLoopGroup
s.
-
eagAttributes
public static void eagAttributes(NettyServerBuilder builder, Attributes eagAttributes)
Sets the EAG attributes available to protocol negotiators.
-
-