T |
ServerBuilder.addStreamTracerFactory(ServerStreamTracer.Factory factory) |
|
T |
ManagedChannelBuilder.addTransportFilter(ClientTransportFilter filter) |
|
T |
ServerBuilder.addTransportFilter(ServerTransportFilter filter) |
|
T |
ServerBuilder.callExecutor(ServerCallExecutorSupplier executorSupplier) |
Allows for defining a way to provide a custom executor to handle the server call.
|
CallOptions |
CallOptions.clearOnReadyThreshold() |
Resets to the default number of bytes that must be queued before the
call will leave the
'wait for ready' state.
|
abstract T |
ManagedChannelBuilder.compressorRegistry(CompressorRegistry registry) |
Set the compression registry for use in the channel.
|
abstract T |
ServerBuilder.compressorRegistry(CompressorRegistry registry) |
Set the compression registry for use in the channel.
|
abstract T |
ManagedChannelBuilder.decompressorRegistry(DecompressorRegistry registry) |
Set the decompression registry for use in the channel.
|
abstract T |
ServerBuilder.decompressorRegistry(DecompressorRegistry registry) |
Set the decompression registry for use in the channel.
|
T |
ManagedChannelBuilder.defaultLoadBalancingPolicy(String policy) |
Sets the default load-balancing policy that will be used if the service config doesn't specify
one.
|
T |
ManagedChannelBuilder.defaultServiceConfig(Map<String,?> serviceConfig) |
Provides a service config to the channel.
|
T |
ManagedChannelBuilder.disableServiceConfigLookUp() |
Disables service config look-up from the naming system, which is enabled by default.
|
<T> void |
Metadata.discardAll(Metadata.Key<T> key) |
Remove all values for the given key without returning them.
|
void |
ManagedChannel.enterIdle() |
Invoking this method moves the channel into the IDLE state and triggers tear-down of the
channel's name resolver and load balancer, while still allowing on-going RPCs on the channel to
continue.
|
static String |
MethodDescriptor.extractBareMethodName(String fullMethodName) |
Extract the method name out of a fully qualified method name.
|
Set<String> |
DecompressorRegistry.getAdvertisedMessageEncodings() |
Provides a list of all message encodings that have decompressors available and should be
advertised.
|
Attributes |
ClientCall.getAttributes() |
Returns additional properties of the call.
|
Attributes |
ServerCall.getAttributes() |
Returns properties of a single call.
|
String |
CallOptions.getAuthority() |
Override the HTTP/2 authority the channel claims to be connecting to.
|
String |
LoadBalancer.PickResult.getAuthorityOverride() |
Returns the authority override if any.
|
String |
MethodDescriptor.getBareMethodName() |
A convenience method for extractBareMethodName(getFullMethodName()) .
|
ChannelLogger |
NameResolver.Args.getChannelLogger() |
Returns the ChannelLogger for the Channel served by this NameResolver.
|
List<ServerServiceDefinition> |
Server.getImmutableServices() |
Returns immutable services registered with the server, or an empty list if not supported by the
implementation.
|
Integer |
CallOptions.getMaxInboundMessageSize() |
Gets the maximum allowed message size acceptable from the remote peer.
|
Integer |
CallOptions.getMaxOutboundMessageSize() |
Gets the maximum allowed message size acceptable to send the remote peer.
|
List<ServerServiceDefinition> |
Server.getMutableServices() |
Returns mutable services registered with the server, or an empty list if not supported by the
implementation.
|
Integer |
CallOptions.getOnReadyThreshold() |
Returns to the default number of bytes that must be queued before the
call will leave the
'wait for ready' state.
|
<T> T |
CallOptions.getOption(CallOptions.Key<T> key) |
Get the value for a custom option or its inherent default.
|
String |
NameResolver.Args.getOverrideAuthority() |
|
ScheduledExecutorService |
NameResolver.Args.getScheduledExecutorService() |
|
Object |
ServiceDescriptor.getSchemaDescriptor() |
Returns the schema descriptor for this service.
|
SecurityLevel |
ServerCall.getSecurityLevel() |
Returns the level of security guarantee in communications
|
String |
MethodDescriptor.getServiceName() |
A convenience method for extractFullServiceName(getFullMethodName()) .
|
List<ServerServiceDefinition> |
HandlerRegistry.getServices() |
Returns the ServerServiceDefinition s provided by the registry, or an empty list if not
supported by the implementation.
|
List<ServerServiceDefinition> |
Server.getServices() |
Returns all services registered with the server, or an empty list if not supported by the
implementation.
|
ConnectivityState |
ManagedChannel.getState(boolean requestConnection) |
Gets the current connectivity state.
|
List<ClientStreamTracer.Factory> |
CallOptions.getStreamTracerFactories() |
Returns an immutable list of ClientStreamTracerFactory s.
|
abstract T |
ManagedChannelBuilder.idleTimeout(long value,
TimeUnit unit) |
Set the duration without ongoing RPCs before going to idle mode.
|
void |
LoadBalancer.Helper.ignoreRefreshNameResolutionCheck() |
Deprecated.
|
T |
ServerBuilder.keepAliveTime(long keepAliveTime,
TimeUnit timeUnit) |
Sets the time without read activity before sending a keepalive ping.
|
T |
ServerBuilder.keepAliveTimeout(long keepAliveTimeout,
TimeUnit timeUnit) |
Sets a time waiting for read activity after sending a keepalive ping.
|
T |
ServerBuilder.maxConnectionAge(long maxConnectionAge,
TimeUnit timeUnit) |
Sets the maximum connection age, connections lasting longer than which will be gracefully
terminated.
|
T |
ServerBuilder.maxConnectionAgeGrace(long maxConnectionAgeGrace,
TimeUnit timeUnit) |
Sets the grace time for the graceful connection termination.
|
T |
ServerBuilder.maxConnectionIdle(long maxConnectionIdle,
TimeUnit timeUnit) |
Sets the maximum connection idle time, connections being idle for longer than which will be
gracefully terminated.
|
T |
ManagedChannelBuilder.maxHedgedAttempts(int maxHedgedAttempts) |
Sets the maximum number of hedged attempts that may be configured by the service config.
|
T |
ManagedChannelBuilder.maxRetryAttempts(int maxRetryAttempts) |
Sets the maximum number of retry attempts that may be configured by the service config.
|
T |
ManagedChannelBuilder.maxTraceEvents(int maxTraceEvents) |
Sets the maximum number of channel trace events to keep in the tracer for each channel or
subchannel.
|
abstract T |
ManagedChannelBuilder.nameResolverFactory(NameResolver.Factory resolverFactory) |
Deprecated.
|
void |
ManagedChannel.notifyWhenStateChanged(ConnectivityState source,
Runnable callback) |
Registers a one-off callback that will be run if the connectivity state of the channel diverges
from the given source , which is typically what has just been returned by ManagedChannel.getState(boolean) .
|
static <T> CallOptions.Key<T> |
CallOptions.Key.of(String debugString,
T defaultValue) |
Deprecated.
|
static <T> Metadata.Key<T> |
Metadata.Key.of(String name,
Metadata.BinaryStreamMarshaller<T> marshaller) |
Creates a key for a binary header, serializing to input streams.
|
T |
ServerBuilder.permitKeepAliveTime(long keepAliveTime,
TimeUnit timeUnit) |
Specify the most aggressive keep-alive time clients are permitted to configure.
|
T |
ServerBuilder.permitKeepAliveWithoutCalls(boolean permit) |
Sets whether to allow clients to send keep-alive HTTP/2 PINGs even if there are no outstanding
RPCs on the connection.
|
T |
ManagedChannelBuilder.perRpcBufferLimit(long bytes) |
Sets the per RPC buffer limit in bytes used for retry.
|
void |
ManagedChannel.resetConnectBackoff() |
For subchannels that are in TRANSIENT_FAILURE state, short-circuit the backoff timer and make
them reconnect immediately.
|
T |
ManagedChannelBuilder.retryBufferSize(long bytes) |
Sets the retry buffer size in bytes.
|
SynchronizationContext.ScheduledHandle |
SynchronizationContext.schedule(Runnable task,
Duration delay,
ScheduledExecutorService timerService) |
|
SynchronizationContext.ScheduledHandle |
SynchronizationContext.scheduleWithFixedDelay(Runnable task,
Duration initialDelay,
Duration delay,
ScheduledExecutorService timerService) |
|
T |
ManagedChannelBuilder.setBinaryLog(BinaryLog binaryLog) |
Sets the BinaryLog object that this channel should log to.
|
T |
ServerBuilder.setBinaryLog(BinaryLog binaryLog) |
Sets the BinaryLog object that this server should log to.
|
NameResolver.Args.Builder |
NameResolver.Args.Builder.setChannelLogger(ChannelLogger channelLogger) |
|
ServiceDescriptor.Builder |
ServiceDescriptor.Builder.setName(String name) |
Sets the name.
|
<X> T |
ManagedChannelBuilder.setNameResolverArg(NameResolver.Args.Key<X> key,
X value) |
Provides a "custom" argument for the NameResolver , if applicable, replacing any 'value'
previously provided for 'key'.
|
void |
ServerCall.setOnReadyThreshold(int numBytes) |
A hint to the call that specifies how many bytes must be queued before
ServerCall.isReady() will return false.
|
NameResolver.Args.Builder |
NameResolver.Args.Builder.setOverrideAuthority(String authority) |
|
NameResolver.Args.Builder |
NameResolver.Args.Builder.setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) |
|
static Status |
Contexts.statusFromCancelled(Context context) |
Returns the Status of a cancelled context or null if the context
is not cancelled.
|
void |
CallCredentials.thisUsesUnstableApi() |
Deprecated.
|
static ServerServiceDefinition |
ServerInterceptors.useInputStreamMessages(ServerServiceDefinition serviceDef) |
Create a new ServerServiceDefinition whose MethodDescriptor serializes to
and from InputStream for all methods.
|
static <ReqT,RespT> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<ReqT> requestMarshaller,
MethodDescriptor.Marshaller<RespT> responseMarshaller) |
|
static <T> ServerServiceDefinition |
ServerInterceptors.useMarshalledMessages(ServerServiceDefinition serviceDef,
MethodDescriptor.Marshaller<T> marshaller) |
Create a new ServerServiceDefinition whose MethodDescriptor serializes to
and from T for all methods.
|
CallOptions |
CallOptions.withAuthority(String authority) |
Override the HTTP/2 authority the channel claims to be connecting to.
|
CallOptions |
CallOptions.withDeadlineAfter(Duration duration) |
|
CallOptions |
CallOptions.withMaxInboundMessageSize(int maxSize) |
Sets the maximum allowed message size acceptable from the remote peer.
|
CallOptions |
CallOptions.withMaxOutboundMessageSize(int maxSize) |
Sets the maximum allowed message size acceptable sent to the remote peer.
|
CallOptions |
CallOptions.withOnReadyThreshold(int numBytes) |
Specifies how many bytes must be queued before the call is
considered not ready to send more messages.
|
CallOptions |
CallOptions.withStreamTracerFactory(ClientStreamTracer.Factory factory) |
Returns a new CallOptions with a ClientStreamTracerFactory in addition to
the existing factories.
|
static LoadBalancer.PickResult |
LoadBalancer.PickResult.withSubchannel(LoadBalancer.Subchannel subchannel,
ClientStreamTracer.Factory streamTracerFactory,
String authorityOverride) |
Same as withSubchannel(subchannel, streamTracerFactory) but with an authority name
to override in the host header.
|