Skip navigation links
A B C D E G H I L M N P Q R S T V _ 

A

addInterceptor(ClientInterceptor) - Method in class io.greptime.rpc.GrpcClient
 
alpha(int) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
alpha(Function<Integer, Integer>) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
authority() - Method in class io.greptime.rpc.IdChannel
 
awaitTermination(long, TimeUnit) - Method in class io.greptime.rpc.IdChannel
 

B

beta(int) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
beta(Function<Integer, Integer>) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
blockOnLimit(boolean, long) - Method in class io.greptime.rpc.limit.RequestLimiterBuilder
When set to true new calls to the channel will block when the limit has been reached instead of failing fast with an UNAVAILABLE status.
build() - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
 
build() - Method in class io.greptime.rpc.limit.RequestLimiterBuilder
 
build() - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
Builder() - Constructor for class io.greptime.rpc.limit.Gradient2Limit.Builder
 

C

checkConnection(Endpoint) - Method in class io.greptime.rpc.GrpcClient
 
checkConnection(Endpoint, boolean) - Method in class io.greptime.rpc.GrpcClient
 
ClientRequestLimitInterceptor - Class in io.greptime.rpc.interceptors
ClientInterceptor that enforces per service and/or per method concurrent request limits and returns a Status.UNAVAILABLE when that limit has been reached.
ClientRequestLimitInterceptor(Limiter<RequestLimitCtx>) - Constructor for class io.greptime.rpc.interceptors.ClientRequestLimitInterceptor
 
ClientRequestLimitInterceptor(Limiter<RequestLimitCtx>, Function<String, Boolean>) - Constructor for class io.greptime.rpc.interceptors.ClientRequestLimitInterceptor
 
closeConnection(Endpoint) - Method in class io.greptime.rpc.GrpcClient
 
ContextToHeadersInterceptor - Class in io.greptime.rpc.interceptors
Add RPC context to Grpc headers.
ContextToHeadersInterceptor() - Constructor for class io.greptime.rpc.interceptors.ContextToHeadersInterceptor
 
counter(String, String...) - Method in class io.greptime.rpc.limit.LimitMetricRegistry
 
createRpcClient(RpcFactory.ConfigHelper<RpcClient>) - Method in class io.greptime.rpc.GrpcFactory
 

D

decrease(Function<Double, Double>) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
display(Display.Printer) - Method in class io.greptime.rpc.GrpcClient
 
distribution(String, String...) - Method in class io.greptime.rpc.limit.LimitMetricRegistry
 

E

enterIdle() - Method in class io.greptime.rpc.IdChannel
 

G

gauge(String, Supplier<Number>, String...) - Method in class io.greptime.rpc.limit.LimitMetricRegistry
 
getAllMethodDescriptors() - Method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
 
getAllMethodDescriptors() - Method in interface io.greptime.rpc.MarshallerRegistry
Get all registered method descriptor.
getAllMethodsLimitPercent() - Method in interface io.greptime.rpc.MarshallerRegistry
Get all method's limit percent.
getChannelId() - Method in class io.greptime.rpc.IdChannel
 
getDefaultRequestInstance(Class<? extends Message>) - Method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
 
getDefaultRequestInstance(Class<? extends Message>) - Method in interface io.greptime.rpc.MarshallerRegistry
Find default request instance by request class.
getDefaultResponseInstance(Class<? extends Message>) - Method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
 
getDefaultResponseInstance(Class<? extends Message>) - Method in interface io.greptime.rpc.MarshallerRegistry
Find default response instance by request class.
getLastRtt(TimeUnit) - Method in class io.greptime.rpc.limit.Gradient2Limit
 
getMarshallerRegistry() - Method in class io.greptime.rpc.GrpcFactory
 
getMethodName(Class<? extends Message>, MethodDescriptor.MethodType) - Method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
 
getMethodName(Class<? extends Message>, MethodDescriptor.MethodType) - Method in interface io.greptime.rpc.MarshallerRegistry
Find method name by request class.
getMethodName(Class<? extends Message>, MethodDescriptor.MethodType) - Method in interface io.greptime.rpc.MarshallerRegistry
Find method name by request class.
getRttNoLoad(TimeUnit) - Method in class io.greptime.rpc.limit.Gradient2Limit
 
getState(boolean) - Method in class io.greptime.rpc.IdChannel
 
Gradient2Limit - Class in io.greptime.rpc.limit
Concurrency limit algorithm that adjusts the limit based on the gradient of change of the current average RTT and a long term exponentially smoothed average RTT.
Gradient2Limit.Builder - Class in io.greptime.rpc.limit
 
GrpcClient - Class in io.greptime.rpc
Grpc client implementation.
GrpcClient(MarshallerRegistry) - Constructor for class io.greptime.rpc.GrpcClient
 
GrpcFactory - Class in io.greptime.rpc
GreptimeDB grpc impl service factory.
GrpcFactory() - Constructor for class io.greptime.rpc.GrpcFactory
 

H

handle(String) - Method in class io.greptime.rpc.signal.RpcLimitSignalHandler
 

I

IdChannel - Class in io.greptime.rpc
A managed channel that has a channel id.
IdChannel(ManagedChannel) - Constructor for class io.greptime.rpc.IdChannel
 
increase(Function<Double, Double>) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
init(RpcOptions) - Method in class io.greptime.rpc.GrpcClient
 
initialLimit(int) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Initial limit used by the limiter
initialLimit(int) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
interceptCall(MethodDescriptor<ReqT, RespT>, CallOptions, Channel) - Method in class io.greptime.rpc.interceptors.ClientRequestLimitInterceptor
 
interceptCall(MethodDescriptor<ReqT, RespT>, CallOptions, Channel) - Method in class io.greptime.rpc.interceptors.ContextToHeadersInterceptor
 
interceptCall(MethodDescriptor<ReqT, RespT>, CallOptions, Channel) - Method in class io.greptime.rpc.interceptors.MetricInterceptor
 
invokeAsync(Endpoint, Req, Context, Observer<Resp>, long) - Method in class io.greptime.rpc.GrpcClient
 
invokeClientStreaming(Endpoint, Req, Context, Observer<Resp>) - Method in class io.greptime.rpc.GrpcClient
 
invokeServerStreaming(Endpoint, Req, Context, Observer<Resp>) - Method in class io.greptime.rpc.GrpcClient
 
invokeSync(Endpoint, Req, Context, long) - Method in class io.greptime.rpc.GrpcClient
 
io.greptime.rpc - package io.greptime.rpc
 
io.greptime.rpc.interceptors - package io.greptime.rpc.interceptors
 
io.greptime.rpc.limit - package io.greptime.rpc.limit
 
io.greptime.rpc.signal - package io.greptime.rpc.signal
 
isLimitSwitchOpen() - Static method in class io.greptime.rpc.interceptors.ClientRequestLimitInterceptor
Whether limit open.
isShutdown() - Method in class io.greptime.rpc.IdChannel
 
isTerminated() - Method in class io.greptime.rpc.IdChannel
 

L

LimitMetricRegistry - Class in io.greptime.rpc.limit
For tracking metrics in the limiters.
LimitMetricRegistry() - Constructor for class io.greptime.rpc.limit.LimitMetricRegistry
 
logOnLimitChange(boolean) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
 
logOnLimitChange(boolean) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
longWindow(int) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
 

M

ManagedChannelHelper - Class in io.greptime.rpc
Managed channel shutdown helper.
ManagedChannelHelper() - Constructor for class io.greptime.rpc.ManagedChannelHelper
 
MarshallerRegistry - Interface in io.greptime.rpc
Marshaller registry for grpc service.
MarshallerRegistry.DefaultMarshallerRegistry - Enum in io.greptime.rpc
 
maxConcurrency(int) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Maximum allowable concurrency.
maxConcurrency(int) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
MetricInterceptor - Class in io.greptime.rpc.interceptors
Request method metric interceptor.
MetricInterceptor() - Constructor for class io.greptime.rpc.interceptors.MetricInterceptor
 
metricRegistry(MetricRegistry) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Registry for reporting metrics about the limiter's internal state.
metricRegistry(MetricRegistry) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
minLimit(int) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Minimum concurrency limit allowed.

N

newBuilder() - Static method in class io.greptime.rpc.limit.Gradient2Limit
 
newBuilder() - Static method in class io.greptime.rpc.limit.RequestLimiterBuilder
 
newBuilder() - Static method in class io.greptime.rpc.limit.VegasLimit
 
newCall(MethodDescriptor<RequestT, ResponseT>, CallOptions) - Method in class io.greptime.rpc.IdChannel
 
newDefault() - Static method in class io.greptime.rpc.limit.Gradient2Limit
 
newDefault() - Static method in class io.greptime.rpc.limit.VegasLimit
 
notifyWhenStateChanged(ConnectivityState, Runnable) - Method in class io.greptime.rpc.IdChannel
 

P

partitionByMethod() - Method in class io.greptime.rpc.limit.RequestLimiterBuilder
 
partitionKey() - Method in interface io.greptime.rpc.limit.RequestLimitCtx
 
probeMultiplier(int) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
The limiter will probe for a new noload RTT every probeMultiplier * current limit iterations.

Q

queueSize(int) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Fixed amount the estimated limit can grow while latencies remain low
queueSize(Function<Integer, Integer>) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Function to dynamically determine the amount the estimated limit can grow while latencies remain low as a function of the current limit.

R

register(MethodDescriptor, Class<?>, Object, Object) - Method in class io.greptime.rpc.GrpcFactory
 
registerConnectionObserver(RpcClient.ConnectionObserver) - Method in class io.greptime.rpc.GrpcClient
 
registerMarshaller(MethodDescriptor, Class<? extends Message>, Message, Message) - Method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
 
registerMarshaller(MethodDescriptor, Class<? extends Message>, Message, Message) - Method in interface io.greptime.rpc.MarshallerRegistry
Register default request instance.
RequestLimitCtx - Interface in io.greptime.rpc.limit
 
RequestLimiterBuilder - Class in io.greptime.rpc.limit
Refer to `concurrency-limit-grpc`
RequestLimiterBuilder() - Constructor for class io.greptime.rpc.limit.RequestLimiterBuilder
 
resetConnectBackoff() - Method in class io.greptime.rpc.IdChannel
 
resetLimitSwitch() - Static method in class io.greptime.rpc.interceptors.ClientRequestLimitInterceptor
See isLimitSwitchOpen() Reset `limitSwitch`, set to the opposite of the old value.
RPC_LIMITER - Static variable in class io.greptime.rpc.limit.LimitMetricRegistry
 
RpcLimitSignalHandler - Class in io.greptime.rpc.signal
A signal handler that can reset LIMIT_SWITCH by resetLimitSwitch().
RpcLimitSignalHandler() - Constructor for class io.greptime.rpc.signal.RpcLimitSignalHandler
 
rttTolerance(double) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Tolerance for changes in minimum latency.

S

self() - Method in class io.greptime.rpc.limit.RequestLimiterBuilder
 
setCurrentCtx(Context) - Static method in class io.greptime.rpc.interceptors.ContextToHeadersInterceptor
 
shutdown() - Method in class io.greptime.rpc.IdChannel
 
shutdownAndAwaitTermination(ManagedChannel) - Static method in class io.greptime.rpc.ManagedChannelHelper
 
shutdownAndAwaitTermination(ManagedChannel, long) - Static method in class io.greptime.rpc.ManagedChannelHelper
The following method shuts down an ManagedChannel in two phases, first by calling shutdown to reject incoming tasks, and then calling shutdownNow, if necessary, to cancel any lingering tasks.
shutdownGracefully() - Method in class io.greptime.rpc.GrpcClient
 
shutdownNow() - Method in class io.greptime.rpc.IdChannel
 
smoothing(double) - Method in class io.greptime.rpc.limit.Gradient2Limit.Builder
Smoothing factor to limit how aggressively the estimated limit can shrink when queuing has been detected.
smoothing(double) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
supportedMethodType(MethodDescriptor.MethodType) - Method in interface io.greptime.rpc.MarshallerRegistry
 

T

threshold(Function<Integer, Integer>) - Method in class io.greptime.rpc.limit.VegasLimit.Builder
 
toString() - Method in class io.greptime.rpc.IdChannel
 
toString() - Method in class io.greptime.rpc.limit.Gradient2Limit
 
toString() - Method in class io.greptime.rpc.limit.VegasLimit
 

V

valueOf(String) - Static method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.greptime.rpc.MarshallerRegistry.DefaultMarshallerRegistry
Returns an array containing the constants of this enum type, in the order they are declared.
VegasLimit - Class in io.greptime.rpc.limit
Limiter based on TCP Vegas where the limit increases by alpha if the queue_use is small (< alpha) and decreases by alpha if the queue_use is large (> beta).
VegasLimit.Builder - Class in io.greptime.rpc.limit
 

_

_update(long, long, int, boolean) - Method in class io.greptime.rpc.limit.Gradient2Limit
 
_update(long, long, int, boolean) - Method in class io.greptime.rpc.limit.VegasLimit
 
A B C D E G H I L M N P Q R S T V _ 
Skip navigation links

Copyright © 2023. All rights reserved.