Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grpc/grpc-java
/ functions
Functions
22,628 in github.com/grpc/grpc-java
⨍
Functions
22,628
◇
Types & classes
3,835
↓ 82 callers
Method
parse
Parses a json string, returning either a {@code Map<String, ?>}, {@code List<?>}, {@code String}, {@code Double}, {@code Boolean}, or {@code null}. Fa
core/src/main/java/io/grpc/internal/JsonParser.java:48
↓ 81 callers
Method
getXdsResourceTypeArgs
(boolean isTrustedServer)
xds/src/test/java/io/grpc/xds/GrpcXdsClientImplDataTest.java:3632
↓ 81 callers
Method
requestConnection
()
core/src/test/java/io/grpc/internal/PickFirstLeafLoadBalancerTest.java:1145
↓ 80 callers
Method
create
()
api/src/main/java/io/grpc/InsecureServerCredentials.java:21
↓ 79 callers
Method
frameHandler
()
okhttp/src/test/java/io/grpc/okhttp/OkHttpClientTransportTest.java:2241
↓ 79 callers
Method
log
(ChannelLogLevel level, String message)
okhttp/src/test/java/io/grpc/okhttp/OkHttpChannelBuilderTest.java:530
↓ 79 callers
Method
timeout
()
okhttp/src/main/java/io/grpc/okhttp/AsyncSink.java:185
↓ 79 callers
Method
withOption
Sets a custom option. Any existing value for the key is overwritten. @param key The option key @param value The option value. @since 1.13.0
api/src/main/java/io/grpc/CallOptions.java:400
↓ 78 callers
Method
getMetricAsLongOrFail
Returns the value of a metric converted to long, or throw if not found.
testing/src/main/java/io/grpc/internal/testing/StatsTestUtils.java:101
↓ 78 callers
Method
headers
Create or update incoming headers, creating the corresponding streams if necessary. Frames that trigger this are SPDY SYN_STREAM, HEADERS, and SYN_REP
okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/FrameReader.java:49
↓ 78 callers
Method
startResourceWatcher
( XdsResourceType<T> type, String name, ResourceWatcher<T> watcher, Executor executor)
xds/src/test/java/io/grpc/xds/GrpcXdsClientImplTestBase.java:5164
↓ 77 callers
Method
assertExactCallbackInvokes
(String ... expectedInvokes)
core/src/test/java/io/grpc/internal/InternalSubchannelTest.java:1679
↓ 77 callers
Method
enqueue
(WriteQueue.QueuedCommand command)
netty/src/test/java/io/grpc/netty/NettyHandlerTestBase.java:341
↓ 77 callers
Method
getStats
(AbstractSubchannel subchannel)
core/src/test/java/io/grpc/internal/ManagedChannelImplTest.java:4641
↓ 76 callers
Method
isPresent
Returns {@code true} when the Conscrypt Java classes are available. Does not imply it actually works on this platform.
core/src/main/java/io/grpc/internal/ConscryptLoader.java:51
↓ 76 callers
Method
run
(boolean isDeframerOnTransportThread)
core/src/main/java/io/grpc/internal/MigratingThreadDeframer.java:37
↓ 76 callers
Method
withValue
Create a new context with the given key value set. The new context will cascade cancellation from its parent. <pre> Context withCredential = Cont
api/src/context/java/io/grpc/Context.java:342
↓ 75 callers
Method
acceptResolvedAddresses
()
xds/src/test/java/io/grpc/xds/PriorityLoadBalancerTest.java:150
↓ 75 callers
Method
min
(@Nullable Deadline deadline0, @Nullable Deadline deadline1)
core/src/main/java/io/grpc/internal/ClientCallImpl.java:430
↓ 75 callers
Method
setListener
Sets the server stream listener.
core/src/main/java/io/grpc/internal/ServerStream.java:88
↓ 74 callers
Method
keyManager
Use the provided certificate chain and private key as the server's identity. Generally they should be PEM-encoded and the key is an unencrypted PKCS#8
api/src/main/java/io/grpc/TlsServerCredentials.java:267
↓ 73 callers
Method
futureUnaryCall
Executes a unary call and returns a {@link ListenableFuture} to the response. The {@code call} should not be already started. After calling this met
stub/src/main/java/io/grpc/stub/ClientCalls.java:321
↓ 73 callers
Method
getMethod
Look up a method by its fully qualified name. @param methodName the fully qualified name without leading slash. E.g., "com.foo.Foo/Bar"
api/src/main/java/io/grpc/ServerServiceDefinition.java:69
↓ 73 callers
Method
timeout
()
xds/src/main/java/io/grpc/xds/internal/grpcservice/GrpcServiceConfig.java:41
↓ 72 callers
Method
getDefaultRegistry
Returns the default registry that loads providers via the Java service loader mechanism.
api/src/main/java/io/grpc/LoadBalancerRegistry.java:100
↓ 72 callers
Method
getValue
()
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java:137
↓ 72 callers
Method
nameResolverFactory
(NameResolver.Factory resolverFactory)
core/src/main/java/io/grpc/internal/ManagedChannelImplBuilder.java:419
↓ 72 callers
Method
postCommit
()
core/src/test/java/io/grpc/internal/RetriableStreamTest.java:2971
↓ 72 callers
Method
value
Returns the value of this counter.
core/src/main/java/io/grpc/internal/LongCounter.java:27
↓ 71 callers
Method
code
Gets the code for this error used on the wire.
core/src/main/java/io/grpc/internal/GrpcUtil.java:388
↓ 71 callers
Method
data
(boolean inFinished, int streamId, Buffer payload)
okhttp/src/test/java/io/grpc/okhttp/OkHttpServerTransportTest.java:1572
↓ 71 callers
Method
getAll
Returns all the metadata entries named 'name', in the order they were received, parsed as T, or null if there are none. The iterator is not guaranteed
api/src/main/java/io/grpc/Metadata.java:308
↓ 71 callers
Method
onResult2
(final NameResolver.ResolutionResult resolutionResult)
xds/src/main/java/io/grpc/xds/XdsDependencyManager.java:893
↓ 70 callers
Method
attach
Attach this context, thus enter a new scope within which this context is {@link #current}. The previously current context is returned. It is allowed
api/src/context/java/io/grpc/Context.java:426
↓ 70 callers
Method
contains
(CharSequence name)
netty/src/main/java/io/grpc/netty/AbstractHttp2Headers.java:258
↓ 70 callers
Method
fromCode
Return a {@link Status} given a canonical error {@link Code} object.
api/src/main/java/io/grpc/Status.java:348
↓ 70 callers
Method
getAddress
(Subchannel subchannel)
core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java:640
↓ 69 callers
Method
newCall
()
core/src/test/java/io/grpc/internal/ForwardingManagedChannelTest.java:88
↓ 69 callers
Method
setStatus
Updates the status of the server. @param service the name of some aspect of the server that is associated with a health status. This name can have
services/src/main/java/io/grpc/services/HealthStatusManager.java:67
↓ 68 callers
Method
getErrorDetail
Returns error detail if exists, otherwise null.
xds/src/main/java/io/grpc/xds/StructOrError.java:66
↓ 68 callers
Method
interceptCall
Intercept {@link ClientCall} creation by the {@code next} {@link Channel}. <p>Many variations of interception are possible. Complex implementations m
api/src/main/java/io/grpc/ClientInterceptor.java:60
↓ 68 callers
Method
updateBalancingState
( @Nonnull ConnectivityState newState, @Nonnull SubchannelPicker newPicker)
grpclb/src/test/java/io/grpc/grpclb/GrpclbLoadBalancerTest.java:2959
↓ 67 callers
Method
close
Releases resources held by this negotiator. Called when the Channel transitions to terminated or when InternalServer is shutdown (depending on client
netty/src/main/java/io/grpc/netty/ProtocolNegotiator.java:48
↓ 67 callers
Method
messagesAvailable
Called to deliver the next complete message. @param producer single message producer wrapping the message.
core/src/main/java/io/grpc/internal/MessageDeframer.java:68
↓ 67 callers
Method
withError
A decision to report a connectivity error to the RPC. If the RPC is {@link CallOptions#withWaitForReady wait-for-ready}, it will stay buffered. Othe
api/src/main/java/io/grpc/LoadBalancer.java:702
↓ 66 callers
Method
equals
(Object other)
okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/Header.java:41
↓ 66 callers
Method
execute
(Runnable runnable)
api/src/test/java/io/grpc/ContextTest.java:365
↓ 65 callers
Method
fromStatus
Construct from a non-Ok status.
api/src/main/java/io/grpc/StatusOr.java:42
↓ 65 callers
Method
getStats
Returns the stats object.
api/src/main/java/io/grpc/InternalInstrumented.java:33
↓ 65 callers
Method
unaryCall
<pre> One request followed by one response. The server returns the client payload as-is. </pre>
benchmarks/src/generated/main/grpc/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java:239
↓ 64 callers
Method
addLongCounter
Adds a value for a long valued counter metric associated with specified metric instrument. @param metricInstrument The counter metric instrument iden
api/src/main/java/io/grpc/MetricSink.java:72
↓ 64 callers
Method
name
()
xds/src/main/java/io/grpc/xds/internal/Matchers.java:40
↓ 64 callers
Method
setAuthority
Override the default authority with {@code authority}. May only be called before {@link #start}.
core/src/main/java/io/grpc/internal/ClientStream.java:55
↓ 63 callers
Method
create
Creates a new recorder.
testing/src/main/java/io/grpc/testing/StreamRecorder.java:43
↓ 63 callers
Method
headersRead
Called upon receiving all header information from the remote end-point. Note that transports are not required to call this method if no header informa
core/src/main/java/io/grpc/internal/ClientStreamListener.java:34
↓ 63 callers
Method
typeUrl
()
xds/src/main/java/io/grpc/xds/Filter.java:44
↓ 62 callers
Method
deliverLdsUpdate
(long httpMaxStreamDurationNano, List<VirtualHost> virtualHosts)
xds/src/test/java/io/grpc/xds/XdsNameResolverTest.java:2631
↓ 62 callers
Method
execute
Runs the given runnable strictly after all Runnables that were submitted before it, and using the {@code executor} passed to the constructor. .
core/src/main/java/io/grpc/internal/SerializingExecutor.java:92
↓ 62 callers
Method
newCall
( MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions)
android/src/main/java/io/grpc/android/AndroidChannelBuilder.java:277
↓ 62 callers
Method
nextBackoffNanos
Returns the number of nanoseconds to wait.
core/src/main/java/io/grpc/internal/BackoffPolicy.java:30
↓ 62 callers
Method
node
Returns the node identifier to be included in xDS requests.
xds/src/main/java/io/grpc/xds/client/Bootstrapper.java:149
↓ 61 callers
Method
blockingV2UnaryCall
Executes a unary call and blocks on the response, throws a checked {@link StatusException}. @return the single response message. @throws StatusExcept
stub/src/main/java/io/grpc/stub/ClientCalls.java:192
↓ 61 callers
Method
equal
Returns true if two possibly-null objects are equal.
okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/Util.java:40
↓ 61 callers
Method
getKey
()
xds/src/main/java/io/grpc/xds/internal/MetricReportUtils.java:45
↓ 61 callers
Method
handler
()
netty/src/test/java/io/grpc/netty/NettyHandlerTestBase.java:220
↓ 61 callers
Method
updateBalancingState
Set a new state with a new picker to the channel. <p>When a new picker is provided via {@code updateBalancingState()}, the channel will apply the pic
api/src/main/java/io/grpc/LoadBalancer.java:1183
↓ 60 callers
Method
addListener
Add a listener that will be notified when the context becomes cancelled.
api/src/context/java/io/grpc/Context.java:499
↓ 60 callers
Method
forName
Create a channel builder that will connect to the server with the given name. @param name the identity of the server to connect to @return a new buil
inprocess/src/main/java/io/grpc/inprocess/InProcessChannelBuilder.java:61
↓ 60 callers
Method
isShutdown
()
xds/src/test/java/io/grpc/xds/StatefulFilter.java:47
↓ 60 callers
Method
matches
(EvaluateArgs args)
xds/src/main/java/io/grpc/xds/internal/rbac/engine/GrpcAuthorizationEngine.java:419
↓ 60 callers
Method
nextFrame
(Handler handler)
okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/FrameReader.java:32
↓ 60 callers
Method
nextInt
(int bound)
xds/src/main/java/io/grpc/xds/ThreadSafeRandom.java:24
↓ 60 callers
Method
transportReportStatus
Must be holding 'lock' when calling.
okhttp/src/main/java/io/grpc/okhttp/OkHttpServerTransport.java:1166
↓ 60 callers
Method
unaryRpc
<pre> Simple unary RPC. </pre>
testing-proto/src/generated/main/grpc/io/grpc/testing/protobuf/SimpleServiceGrpc.java:213
↓ 59 callers
Method
get
()
rls/src/main/java/io/grpc/rls/RlsLoadBalancer.java:119
↓ 59 callers
Method
getMethodDescriptor
Returns method descriptor to the proto service method.
protobuf/src/main/java/io/grpc/protobuf/ProtoMethodDescriptorSupplier.java:31
↓ 59 callers
Method
id
Returns the id.
netty/src/main/java/io/grpc/netty/StreamIdHolder.java:26
↓ 59 callers
Method
loadMetricStatsMap
()
xds/src/main/java/io/grpc/xds/client/Stats.java:109
↓ 58 callers
Method
allocate
Request a new {@link WritableBuffer} with the given {@code capacityHint}. The allocator is free to return a buffer with a greater or lesser capacity.
core/src/main/java/io/grpc/internal/WritableBufferAllocator.java:29
↓ 58 callers
Method
execute
(Runnable command)
core/src/test/java/io/grpc/internal/ReschedulerTest.java:117
↓ 58 callers
Method
getInstance
()
xds/src/main/java/io/grpc/xds/XdsRouteConfigureResource.java:90
↓ 58 callers
Method
getKey
Returns the key. <p>Any characters that needed URL encoding have already been decoded.
api/src/main/java/io/grpc/QueryParams.java:185
↓ 58 callers
Method
getLoadBalancingPolicyConfig
Gets the domain specific load balancing policy. This is the config produced by {@link LoadBalancerProvider#parseLoadBalancingPolicyConfig(Map)}. @si
api/src/main/java/io/grpc/LoadBalancer.java:279
↓ 58 callers
Method
obtainActiveTransport
Returns a READY transport that will be used to create new streams. <p>Returns {@code null} if the state is not READY. Will try to connect if state i
core/src/main/java/io/grpc/internal/TransportProvider.java:32
↓ 58 callers
Method
shutdownAndVerify
()
okhttp/src/test/java/io/grpc/okhttp/OkHttpClientTransportTest.java:2625
↓ 58 callers
Method
update
(@Nullable ConfigOrError coe)
core/src/main/java/io/grpc/internal/ServiceConfigState.java:86
↓ 57 callers
Method
initTransport
()
okhttp/src/test/java/io/grpc/okhttp/OkHttpClientTransportTest.java:204
↓ 57 callers
Method
intercept
Adds a {@link ServerInterceptor} that is run for all services on the server. Interceptors added through this method always run before per-service int
api/src/main/java/io/grpc/ServerBuilder.java:144
↓ 57 callers
Method
invoke
(ReqT request, StreamObserver<RespT> responseObserver)
stub/src/main/java/io/grpc/stub/ServerCalls.java:88
↓ 57 callers
Method
of
Returns companion enum value of passed internal enum equivalent.
stub/src/main/java/io/grpc/stub/InternalClientCalls.java:57
↓ 57 callers
Method
pollRecord
()
testing/src/main/java/io/grpc/internal/testing/StatsTestUtils.java:142
↓ 57 callers
Method
servers
Returns the list of xDS servers to be connected to. Must not be empty.
xds/src/main/java/io/grpc/xds/client/Bootstrapper.java:146
↓ 57 callers
Method
setHost
Specifies the "host" component of the new URI in its "registered name" form (usually DNS), e.g. "server.com". <p>The registered name can contain any
api/src/main/java/io/grpc/Uri.java:904
↓ 57 callers
Method
toString
{@inheritDoc} <p>If this URI was created by {@link #parse(String)} or {@link #create(String)}, then the returned string will match that original inpu
api/src/main/java/io/grpc/Uri.java:613
↓ 56 callers
Method
create
Creates a URI from a string assumed to be valid. <p>Useful for defining URI constants in code. Not for user input. @throws IllegalArgumentException
api/src/main/java/io/grpc/Uri.java:214
↓ 56 callers
Method
equals
(Object o)
xds/src/test/java/io/grpc/xds/GrpcXdsClientImplTestBase.java:5431
↓ 56 callers
Method
isLoggable
(Level level)
servlet/src/main/java/io/grpc/servlet/AsyncServletOutputStreamWriter.java:256
↓ 56 callers
Method
isWithin
Prepares for a check that the subject is deadline within the given tolerance of an expected value that will be provided in the next call in the fluent
api/src/testFixtures/java/io/grpc/testing/DeadlineSubject.java:55
↓ 56 callers
Method
manualSetUp
()
netty/src/test/java/io/grpc/netty/NettyServerHandlerTest.java:190
↓ 56 callers
Method
stream
()
netty/src/test/java/io/grpc/netty/NettyClientStreamTest.java:593
← previous
next →
201–300 of 22,628, ranked by callers