Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/grpc/grpc-java
/ functions
Functions
22,628 in github.com/grpc/grpc-java
⨍
Functions
22,628
◇
Types & classes
3,835
↓ 4,740 callers
Method
build
Builds the {@link Configuration} from the given command-line arguments. @throws IllegalArgumentException if unable to build the configuration for any
benchmarks/src/main/java/io/grpc/benchmarks/qps/Configuration.java:32
↓ 4,659 callers
Method
verify
(String host, SSLSession session)
okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/OkHostnameVerifier.java:67
↓ 3,283 callers
Method
assertEquals
Assert that two messages are equal, producing a useful message if not.
interop-testing/src/main/java/io/grpc/testing/integration/Util.java:48
↓ 2,372 callers
Method
of
Creates a key for a binary header. @param name Must contain only the valid key characters as defined in the class comment. Must end with {@link #
api/src/main/java/io/grpc/Metadata.java:682
↓ 1,773 callers
Method
get
()
core/src/main/java/io/grpc/internal/BackoffPolicy.java:24
↓ 1,548 callers
Method
newBuilder
()
xds/src/main/java/io/grpc/xds/client/Stats.java:47
↓ 1,417 callers
Method
checkNotNull
(T reference, Object errorMessage)
api/src/context/java/io/grpc/Context.java:1069
↓ 1,267 callers
Method
add
Adds the delta to this counter.
core/src/main/java/io/grpc/internal/LongCounter.java:24
↓ 1,078 callers
Method
get
(String target)
xds/src/main/java/io/grpc/xds/XdsClientPoolFactory.java:27
↓ 1,061 callers
Method
start
Starts stream. This method may only be called once. It is safe to do latent initialization of the stream up until {@link #start} is called. <p>This
core/src/main/java/io/grpc/internal/ClientStream.java:79
↓ 921 callers
Method
put
(K key, V value, int hash, int bitsConsumed)
api/src/context/java/io/grpc/PersistentHashArrayMappedTrie.java:297
↓ 894 callers
Method
getValue
Returns the value if set or throws exception if there is no value set. This method is meant to be called after checking the return value of hasValue()
api/src/main/java/io/grpc/StatusOr.java:57
↓ 853 callers
Method
asList
Returns a mutable list view of the query parameters. @return the mutable list of entries
api/src/main/java/io/grpc/QueryParams.java:117
↓ 847 callers
Method
set
Sets a flag for testing and returns its previous value.
api/src/testFixtures/java/io/grpc/FlagResetRule.java:35
↓ 833 callers
Method
size
()
api/src/context/java/io/grpc/PersistentHashArrayMappedTrie.java:299
↓ 820 callers
Method
getCode
The canonical status code.
api/src/main/java/io/grpc/Status.java:491
↓ 691 callers
Method
newBuilder
Creates a new {@link Builder} with all fields uninitialized or set to their default values.
api/src/main/java/io/grpc/Uri.java:677
↓ 686 callers
Method
getValue
(String s)
core/src/main/java/io/grpc/internal/NoopSslSession.java:69
↓ 680 callers
Method
withDescription
Create a derived instance of {@link Status} with the given description. Leading and trailing whitespace may be removed; this may change in the future
api/src/main/java/io/grpc/Status.java:466
↓ 612 callers
Method
isEmpty
Returns true iff this container no longer owns a {@link Parcel}. <p>{@link #isEmpty()} is true after all call to {@link #close()} or {@link #release(
binder/src/main/java/io/grpc/binder/internal/ParcelHolder.java:72
↓ 523 callers
Method
getDefaultInstance
Returns the default instance used by gRPC when the registry is not specified. Currently the registry just contains support for gzip.
api/src/main/java/io/grpc/CompressorRegistry.java:41
↓ 437 callers
Method
contains
()
xds/src/main/java/io/grpc/xds/internal/Matchers.java:67
↓ 430 callers
Method
getName
Returns the name of the metric. @return the name of the metric.
api/src/main/java/io/grpc/MetricInstrument.java:38
↓ 426 callers
Method
forNonError
Returns an instance for a state that is not {@code TRANSIENT_FAILURE}. @throws IllegalArgumentException if {@code state} is {@code TRANSIENT_FAILURE}
api/src/main/java/io/grpc/ConnectivityStateInfo.java:39
↓ 420 callers
Method
newBuilder
Creates a channel credentials builder for establishing an S2A-secured connection. @param s2aAddress the address of the S2A server used to secure the
s2a/src/main/java/io/grpc/s2a/S2AChannelCredentials.java:52
↓ 418 callers
Method
onNext
Receives a value from the stream. <p>Can be called many times but is never called after {@link #onError(Throwable)} or {@link #onCompleted()} are cal
stub/src/main/java/io/grpc/stub/StreamObserver.java:62
↓ 408 callers
Method
shutdown
Initiates an orderly shutdown of the server. Existing transports continue, but new transports will not be created (once {@link ServerListener#serverSh
core/src/main/java/io/grpc/internal/InternalServer.java:50
↓ 401 callers
Method
emptyList
()
xds/src/test/java/io/grpc/xds/WeightedRandomPickerTest.java:124
↓ 373 callers
Method
getStatus
Returns the status passed to {@link StreamTracer#streamClosed}.
testing/src/main/java/io/grpc/internal/testing/TestStreamTracer.java:48
↓ 370 callers
Method
onSubchannelState
Handles a state change on a Subchannel. <p>The initial state of a Subchannel is IDLE. You won't get a notification for the initial IDLE state. <p>If
api/src/main/java/io/grpc/LoadBalancer.java:1547
↓ 366 callers
Method
setName
Sets the name. This should be non-{@code null}. @param name The name of the service. @return this builder. @since 1.1.0
api/src/main/java/io/grpc/ServiceDescriptor.java:151
↓ 353 callers
Method
append
Appends a piece of information which is a plain string. The given object is immediately converted to string and recorded.
core/src/main/java/io/grpc/internal/InsightBuilder.java:34
↓ 353 callers
Method
assertThrows
( Class<T> expectedThrowable, ThrowingRunnable runnable)
binder/src/test/java/io/grpc/binder/internal/OneWayBinderProxyTest.java:180
↓ 329 callers
Method
getChannel
<pre> Returns a single Channel, or else a NOT_FOUND code. </pre>
services/src/generated/main/grpc/io/grpc/channelz/v1/ChannelzGrpc.java:349
↓ 309 callers
Method
create
(Bootstrapper.ServerInfo serverInfo)
xds/src/main/java/io/grpc/xds/client/XdsTransportFactory.java:28
↓ 303 callers
Method
setAddresses
Sets the addresses resolved by name resolution. This field is required. @since 1.21.0 @deprecated Will be superseded by setAddressesOrError
api/src/main/java/io/grpc/NameResolver.java:899
↓ 296 callers
Method
create
Create a new instance of the resource.
core/src/main/java/io/grpc/internal/SharedResourceHolder.java:161
↓ 290 callers
Method
cancel
Tears down the stream, typically in the event of a timeout. This method may be called multiple times and from any thread. <p>This is a clone of {@lin
core/src/main/java/io/grpc/internal/AbstractClientStream.java:89
↓ 288 callers
Method
register
(ByteBuf buf)
alts/src/test/java/io/grpc/alts/internal/ByteBufTestUtils.java:29
↓ 286 callers
Method
onResourceChanged
Called to deliver a resource update or an error. If an error is passed after a valid resource has been delivered, the watcher should stop using the pr
xds/src/main/java/io/grpc/xds/client/XdsClient.java:159
↓ 284 callers
Method
setType
Sets the method type. @param type the type of the method. @since 1.1.0
api/src/main/java/io/grpc/MethodDescriptor.java:524
↓ 281 callers
Method
put
Adds the {@code key, value} pair. If {@code key} already has values, {@code value} is added to the end. Duplicate values for the same key are permitte
api/src/main/java/io/grpc/Metadata.java:342
↓ 280 callers
Method
newStream
( MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, // Using array for tra
core/src/main/java/io/grpc/internal/ClientTransport.java:56
↓ 273 callers
Method
addMethod
Adds a method to this service. This should be non-{@code null}. @param method the method to add to the descriptor. @return this builder. @since 1.1.
api/src/main/java/io/grpc/ServiceDescriptor.java:164
↓ 273 callers
Method
request
Requests up to the given number of messages from the call to be delivered via {@link StreamListener#messagesAvailable(StreamListener.MessageProducer)}
core/src/main/java/io/grpc/internal/Stream.java:36
↓ 265 callers
Method
getDescription
Returns a description of the metric. @return a description of the metric.
api/src/main/java/io/grpc/MetricInstrument.java:45
↓ 264 callers
Method
onCompleted
Receives a notification of successful stream completion. <p>May only be called once and if called it must be the last method called. In particular if
stub/src/main/java/io/grpc/stub/StreamObserver.java:88
↓ 259 callers
Method
forwardTime
Forward the time by the given duration and run all due tasks. @return the number of tasks run by this call
core/src/testFixtures/java/io/grpc/internal/FakeClock.java:367
↓ 256 callers
Method
next
Returns the next gRPC message, if the data has been received by the deframer and the application has requested another message. <p>The provided {@cod
core/src/main/java/io/grpc/internal/StreamListener.java:61
↓ 245 callers
Method
getAttributes
Attributes describing stream. This is inherited from the transport attributes, and used as the basis of {@link io.grpc.ServerCall#getAttributes}. @r
core/src/main/java/io/grpc/internal/ServerStream.java:76
↓ 239 callers
Method
numPendingTasks
Return the number of queued tasks.
core/src/testFixtures/java/io/grpc/internal/FakeClock.java:384
↓ 238 callers
Method
newBuilder
Factory for constructing a new Builder. @since 1.21.0
api/src/main/java/io/grpc/LoadBalancer.java:237
↓ 231 callers
Method
getCallOptions
The {@code CallOptions} of the stub. @since 1.0.0
stub/src/main/java/io/grpc/stub/AbstractStub.java:94
↓ 231 callers
Method
getState
Returns current subchannel state for given subchannel name if exists, otherwise returns {@code null}.
rls/src/main/java/io/grpc/rls/SubchannelStateManager.java:38
↓ 229 callers
Method
setFullMethodName
Sets the fully qualified (service and method) method name. @see MethodDescriptor#generateFullMethodName @since 1.1.0
api/src/main/java/io/grpc/MethodDescriptor.java:535
↓ 226 callers
Method
addService
Adds a service implementation to the handler registry. @param service ServerServiceDefinition object @return this @since 1.0.0
api/src/main/java/io/grpc/ServerBuilder.java:105
↓ 219 callers
Method
loadCert
Retrieves the specified test certificate or key resource in src/main/resources/certs/ as an {@code InputStream}. @param name name of a file in src/ma
testing/src/main/java/io/grpc/testing/TlsTesting.java:33
↓ 218 callers
Method
closed
Called when the stream is fully closed. A status code of {@link io.grpc.Status.Code#OK} implies normal termination of the stream. Any other value impl
core/src/main/java/io/grpc/internal/ServerStreamListener.java:44
↓ 218 callers
Method
isOk
Is this status OK, i.e., not an error.
api/src/main/java/io/grpc/Status.java:515
↓ 217 callers
Method
close
Releases filter resources like shared resources and remote connections. <p>See {@link Provider#newInstance()} for details on filter instance creation
xds/src/main/java/io/grpc/xds/Filter.java:131
↓ 217 callers
Method
hasValue
Returns whether there is a value.
api/src/main/java/io/grpc/StatusOr.java:49
↓ 216 callers
Method
getScheduledExecutorService
Returns an executor for scheduling provided by the transport. The service should be configured to allow cancelled scheduled runnables to be GCed. <p>
core/src/main/java/io/grpc/internal/ServerTransport.java:46
↓ 213 callers
Method
current
Return the context associated with the current scope, will never return {@code null}. <p>Will never return {@link CancellableContext} even if one is
api/src/context/java/io/grpc/Context.java:171
↓ 213 callers
Method
fail
Called when there has been an error when preparing the headers. This will fail the RPC.
api/src/main/java/io/grpc/CallCredentials.java:83
↓ 212 callers
Method
get
(String name)
gcp-csm-observability/src/main/java/io/grpc/gcp/csm/observability/MetadataExchanger.java:323
↓ 206 callers
Method
setAttributes
Sets the attributes for the addresses resolved by name resolution. If unset, {@link Attributes#EMPTY} will be used as a default. @since 1.21.0
api/src/main/java/io/grpc/NameResolver.java:921
↓ 205 callers
Method
remove
(Key key)
examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/SafeMethodCachingInterceptor.java:97
↓ 204 callers
Method
newStub
(Channel channel, CallOptions callOptions)
stub/src/main/java/io/grpc/stub/AbstractStub.java:280
↓ 201 callers
Method
directExecutor
Execute application code directly in the transport thread. <p>Depending on the underlying transport, using a direct executor may lead to substantial
api/src/main/java/io/grpc/ServerBuilder.java:61
↓ 197 callers
Method
getBytes
(int size, int val)
binder/src/test/java/io/grpc/binder/internal/BlockInputStreamTest.java:115
↓ 195 callers
Method
values
Returns shallow copied values in the cache.
rls/src/main/java/io/grpc/rls/LinkedHashLruCache.java:203
↓ 193 callers
Method
marshaller
Create a {@link Marshaller} for protos of the same type as {@code defaultInstance}. @since 1.0.0
protobuf/src/main/java/io/grpc/protobuf/ProtoUtils.java:54
↓ 192 callers
Method
start
(EventHandler<RespT> eventHandler)
xds/src/main/java/io/grpc/xds/client/XdsTransportFactory.java:45
↓ 189 callers
Method
containsKey
Returns true if a value is defined for the given key. <p>This is done by linear search, so if it is followed by {@link #get} or {@link #getAll}, pref
api/src/main/java/io/grpc/Metadata.java:233
↓ 189 callers
Method
getFullMethodName
The fully qualified name of the method. @since 1.0.0
api/src/main/java/io/grpc/MethodDescriptor.java:250
↓ 189 callers
Method
newBuilder
Create a new builder that is pre-populated with the content from a given container. @deprecated Use {@link Attributes#toBuilder()} on the {@link Attri
api/src/main/java/io/grpc/Attributes.java:91
↓ 188 callers
Method
shutdownNow
Initiates a forceful shutdown in which preexisting and new calls are closed. Existing calls should be closed with the provided {@code reason}.
core/src/main/java/io/grpc/internal/ServerTransport.java:37
↓ 183 callers
Method
getConcludedConnectivityState
()
core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java:644
↓ 183 callers
Method
log
Logs a message.
api/src/main/java/io/grpc/ChannelLogger.java:55
↓ 183 callers
Method
setRequestMarshaller
Sets the request marshaller. @param requestMarshaller the marshaller to use. @since 1.1.0
api/src/main/java/io/grpc/MethodDescriptor.java:502
↓ 183 callers
Method
setResponseMarshaller
Sets the response marshaller. @param responseMarshaller the marshaller to use. @since 1.1.0
api/src/main/java/io/grpc/MethodDescriptor.java:513
↓ 182 callers
Method
forwardNanos
Forward the time by the given nanoseconds and run all due tasks. @return the number of tasks run by this call
core/src/testFixtures/java/io/grpc/internal/FakeClock.java:377
↓ 177 callers
Method
updateBalancingState
(ConnectivityState newState, SubchannelPicker newPicker)
xds/src/test/java/io/grpc/xds/orca/OrcaOobUtilTest.java:925
↓ 176 callers
Method
newBuilder
()
alts/src/main/java/io/grpc/alts/AltsServerCredentials.java:45
↓ 174 callers
Method
setLoadBalancingPolicyConfig
Sets the load balancing policy config. This field is optional. @return this.
api/src/main/java/io/grpc/LoadBalancer.java:323
↓ 172 callers
Method
info
(String msg, Object... params)
examples/src/main/java/io/grpc/examples/routeguide/RouteGuideClient.java:290
↓ 171 callers
Method
write
Appends {@code length} bytes to the buffer from the source array starting at {@code srcIndex}. @throws IndexOutOfBoundsException if the speci
core/src/main/java/io/grpc/internal/WritableBuffer.java:36
↓ 170 callers
Method
isReady
If {@code true}, indicates that the transport is capable of sending additional messages without requiring excessive buffering internally. Otherwise, {
core/src/main/java/io/grpc/internal/Stream.java:68
↓ 169 callers
Method
getCause
The underlying cause of an error. Note that the cause is not transmitted from server to client.
api/src/main/java/io/grpc/Status.java:507
↓ 166 callers
Method
newBuilder
()
gcp-csm-observability/src/main/java/io/grpc/gcp/csm/observability/CsmObservability.java:44
↓ 163 callers
Method
flush
Flushes any internally buffered messages to the remote end-point.
core/src/main/java/io/grpc/internal/Stream.java:58
↓ 163 callers
Method
getAddresses
Returns the addresses that this Subchannel is bound to. This can be called only if the Subchannel has only one {@link EquivalentAddressGroup}. Under
api/src/main/java/io/grpc/LoadBalancer.java:1406
↓ 160 callers
Method
readableBytes
Gets the current number of readable bytes remaining in this buffer.
core/src/main/java/io/grpc/internal/ReadableBuffer.java:38
↓ 158 callers
Method
runDueTasks
Run all due tasks. Immediately due tasks that are queued during the process also get executed. @return the number of tasks run by this call
core/src/testFixtures/java/io/grpc/internal/FakeClock.java:301
↓ 157 callers
Method
get
()
api/src/main/java/io/grpc/InternalServiceProviders.java:83
↓ 156 callers
Method
writeMessage
Writes a message payload to the remote end-point. The bytes from the stream are immediately read by the Transport. Where possible callers should use s
core/src/main/java/io/grpc/internal/Stream.java:53
↓ 155 callers
Method
awaitTermination
Waits for the server to become terminated, giving up if the timeout is reached. <p>Calling this method before {@code start()} or {@code shutdown()} i
api/src/main/java/io/grpc/Server.java:170
↓ 155 callers
Method
channel
()
netty/src/test/java/io/grpc/netty/NettyHandlerTestBase.java:224
↓ 155 callers
Method
sendResponse
( XdsResourceType<?> type, List<Any> resources, String versionInfo, String nonce)
xds/src/test/java/io/grpc/xds/GrpcXdsClientImplTestBase.java:5241
↓ 154 callers
Method
log
(XdsLogLevel level, String msg)
xds/src/main/java/io/grpc/xds/client/XdsLogger.java:55
next →
1–100 of 22,628, ranked by callers