MCPcopy Index your code

hub / github.com/grpc/grpc-java / functions

Functions22,628 in github.com/grpc/grpc-java

↓ 4,740 callersMethodbuild
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 callersMethodverify
(String host, SSLSession session)
okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/OkHostnameVerifier.java:67
↓ 3,283 callersMethodassertEquals
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 callersMethodof
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 callersMethodget
()
core/src/main/java/io/grpc/internal/BackoffPolicy.java:24
↓ 1,548 callersMethodnewBuilder
()
xds/src/main/java/io/grpc/xds/client/Stats.java:47
↓ 1,417 callersMethodcheckNotNull
(T reference, Object errorMessage)
api/src/context/java/io/grpc/Context.java:1069
↓ 1,267 callersMethodadd
Adds the delta to this counter.
core/src/main/java/io/grpc/internal/LongCounter.java:24
↓ 1,078 callersMethodget
(String target)
xds/src/main/java/io/grpc/xds/XdsClientPoolFactory.java:27
↓ 1,061 callersMethodstart
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 callersMethodput
(K key, V value, int hash, int bitsConsumed)
api/src/context/java/io/grpc/PersistentHashArrayMappedTrie.java:297
↓ 894 callersMethodgetValue
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 callersMethodasList
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 callersMethodset
Sets a flag for testing and returns its previous value.
api/src/testFixtures/java/io/grpc/FlagResetRule.java:35
↓ 833 callersMethodsize
()
api/src/context/java/io/grpc/PersistentHashArrayMappedTrie.java:299
↓ 820 callersMethodgetCode
The canonical status code.
api/src/main/java/io/grpc/Status.java:491
↓ 691 callersMethodnewBuilder
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 callersMethodgetValue
(String s)
core/src/main/java/io/grpc/internal/NoopSslSession.java:69
↓ 680 callersMethodwithDescription
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 callersMethodisEmpty
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 callersMethodgetDefaultInstance
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 callersMethodcontains
()
xds/src/main/java/io/grpc/xds/internal/Matchers.java:67
↓ 430 callersMethodgetName
Returns the name of the metric. @return the name of the metric.
api/src/main/java/io/grpc/MetricInstrument.java:38
↓ 426 callersMethodforNonError
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 callersMethodnewBuilder
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 callersMethodonNext
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 callersMethodshutdown
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 callersMethodemptyList
()
xds/src/test/java/io/grpc/xds/WeightedRandomPickerTest.java:124
↓ 373 callersMethodgetStatus
Returns the status passed to {@link StreamTracer#streamClosed}.
testing/src/main/java/io/grpc/internal/testing/TestStreamTracer.java:48
↓ 370 callersMethodonSubchannelState
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 callersMethodsetName
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 callersMethodappend
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 callersMethodassertThrows
( Class<T> expectedThrowable, ThrowingRunnable runnable)
binder/src/test/java/io/grpc/binder/internal/OneWayBinderProxyTest.java:180
↓ 329 callersMethodgetChannel
<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 callersMethodcreate
(Bootstrapper.ServerInfo serverInfo)
xds/src/main/java/io/grpc/xds/client/XdsTransportFactory.java:28
↓ 303 callersMethodsetAddresses
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 callersMethodcreate
Create a new instance of the resource.
core/src/main/java/io/grpc/internal/SharedResourceHolder.java:161
↓ 290 callersMethodcancel
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 callersMethodregister
(ByteBuf buf)
alts/src/test/java/io/grpc/alts/internal/ByteBufTestUtils.java:29
↓ 286 callersMethodonResourceChanged
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 callersMethodsetType
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 callersMethodput
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 callersMethodnewStream
( MethodDescriptor<?, ?> method, Metadata headers, CallOptions callOptions, // Using array for tra
core/src/main/java/io/grpc/internal/ClientTransport.java:56
↓ 273 callersMethodaddMethod
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 callersMethodrequest
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 callersMethodgetDescription
Returns a description of the metric. @return a description of the metric.
api/src/main/java/io/grpc/MetricInstrument.java:45
↓ 264 callersMethodonCompleted
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 callersMethodforwardTime
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 callersMethodnext
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 callersMethodgetAttributes
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 callersMethodnumPendingTasks
Return the number of queued tasks.
core/src/testFixtures/java/io/grpc/internal/FakeClock.java:384
↓ 238 callersMethodnewBuilder
Factory for constructing a new Builder. @since 1.21.0
api/src/main/java/io/grpc/LoadBalancer.java:237
↓ 231 callersMethodgetCallOptions
The {@code CallOptions} of the stub. @since 1.0.0
stub/src/main/java/io/grpc/stub/AbstractStub.java:94
↓ 231 callersMethodgetState
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 callersMethodsetFullMethodName
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 callersMethodaddService
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 callersMethodloadCert
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 callersMethodclosed
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 callersMethodisOk
Is this status OK, i.e., not an error.
api/src/main/java/io/grpc/Status.java:515
↓ 217 callersMethodclose
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 callersMethodhasValue
Returns whether there is a value.
api/src/main/java/io/grpc/StatusOr.java:49
↓ 216 callersMethodgetScheduledExecutorService
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 callersMethodcurrent
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 callersMethodfail
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 callersMethodget
(String name)
gcp-csm-observability/src/main/java/io/grpc/gcp/csm/observability/MetadataExchanger.java:323
↓ 206 callersMethodsetAttributes
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 callersMethodremove
(Key key)
examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/SafeMethodCachingInterceptor.java:97
↓ 204 callersMethodnewStub
(Channel channel, CallOptions callOptions)
stub/src/main/java/io/grpc/stub/AbstractStub.java:280
↓ 201 callersMethoddirectExecutor
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 callersMethodgetBytes
(int size, int val)
binder/src/test/java/io/grpc/binder/internal/BlockInputStreamTest.java:115
↓ 195 callersMethodvalues
Returns shallow copied values in the cache.
rls/src/main/java/io/grpc/rls/LinkedHashLruCache.java:203
↓ 193 callersMethodmarshaller
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 callersMethodstart
(EventHandler<RespT> eventHandler)
xds/src/main/java/io/grpc/xds/client/XdsTransportFactory.java:45
↓ 189 callersMethodcontainsKey
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 callersMethodgetFullMethodName
The fully qualified name of the method. @since 1.0.0
api/src/main/java/io/grpc/MethodDescriptor.java:250
↓ 189 callersMethodnewBuilder
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 callersMethodshutdownNow
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 callersMethodgetConcludedConnectivityState
()
core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java:644
↓ 183 callersMethodlog
Logs a message.
api/src/main/java/io/grpc/ChannelLogger.java:55
↓ 183 callersMethodsetRequestMarshaller
Sets the request marshaller. @param requestMarshaller the marshaller to use. @since 1.1.0
api/src/main/java/io/grpc/MethodDescriptor.java:502
↓ 183 callersMethodsetResponseMarshaller
Sets the response marshaller. @param responseMarshaller the marshaller to use. @since 1.1.0
api/src/main/java/io/grpc/MethodDescriptor.java:513
↓ 182 callersMethodforwardNanos
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 callersMethodupdateBalancingState
(ConnectivityState newState, SubchannelPicker newPicker)
xds/src/test/java/io/grpc/xds/orca/OrcaOobUtilTest.java:925
↓ 176 callersMethodnewBuilder
()
alts/src/main/java/io/grpc/alts/AltsServerCredentials.java:45
↓ 174 callersMethodsetLoadBalancingPolicyConfig
Sets the load balancing policy config. This field is optional. @return this.
api/src/main/java/io/grpc/LoadBalancer.java:323
↓ 172 callersMethodinfo
(String msg, Object... params)
examples/src/main/java/io/grpc/examples/routeguide/RouteGuideClient.java:290
↓ 171 callersMethodwrite
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 callersMethodisReady
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 callersMethodgetCause
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 callersMethodnewBuilder
()
gcp-csm-observability/src/main/java/io/grpc/gcp/csm/observability/CsmObservability.java:44
↓ 163 callersMethodflush
Flushes any internally buffered messages to the remote end-point.
core/src/main/java/io/grpc/internal/Stream.java:58
↓ 163 callersMethodgetAddresses
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 callersMethodreadableBytes
Gets the current number of readable bytes remaining in this buffer.
core/src/main/java/io/grpc/internal/ReadableBuffer.java:38
↓ 158 callersMethodrunDueTasks
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 callersMethodget
()
api/src/main/java/io/grpc/InternalServiceProviders.java:83
↓ 156 callersMethodwriteMessage
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 callersMethodawaitTermination
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 callersMethodchannel
()
netty/src/test/java/io/grpc/netty/NettyHandlerTestBase.java:224
↓ 155 callersMethodsendResponse
( XdsResourceType<?> type, List<Any> resources, String versionInfo, String nonce)
xds/src/test/java/io/grpc/xds/GrpcXdsClientImplTestBase.java:5241
↓ 154 callersMethodlog
(XdsLogLevel level, String msg)
xds/src/main/java/io/grpc/xds/client/XdsLogger.java:55
next →1–100 of 22,628, ranked by callers