| Package | Description |
|---|---|
| io.grpc.stub |
API for the Stub layer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractStub<S extends AbstractStub<S>>
Common base type for stub implementations.
|
static interface |
AbstractStub.StubFactory<T extends AbstractStub<T>>
A factory class for stub.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAsyncStub<S extends AbstractAsyncStub<S>>
Stub implementations for async stubs.
|
class |
AbstractBlockingStub<S extends AbstractBlockingStub<S>>
Stub implementations for blocking stubs.
|
class |
AbstractFutureStub<S extends AbstractFutureStub<S>>
Stub implementations for future stubs.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends AbstractStub<T>> |
MetadataUtils.attachHeaders(T stub,
io.grpc.Metadata extraHeaders)
Deprecated.
Use
stub.withInterceptors(newAttachHeadersInterceptor(...)) instead. |
static <T extends AbstractStub<T>> |
MetadataUtils.captureMetadata(T stub,
java.util.concurrent.atomic.AtomicReference<io.grpc.Metadata> headersCapture,
java.util.concurrent.atomic.AtomicReference<io.grpc.Metadata> trailersCapture)
Deprecated.
Use
stub.withInterceptors(newCaptureMetadataInterceptor()) instead. |
static <T extends AbstractStub<T>> |
AbstractAsyncStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel)
Returns a new async stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractBlockingStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel)
Returns a new blocking stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractFutureStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel)
Returns a new future stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel)
Returns a new stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractAsyncStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel,
io.grpc.CallOptions callOptions)
Returns a new async stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractBlockingStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel,
io.grpc.CallOptions callOptions)
Returns a new blocking stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractFutureStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel,
io.grpc.CallOptions callOptions)
Returns a new future stub with the given channel for the provided method configurations.
|
static <T extends AbstractStub<T>> |
AbstractStub.newStub(AbstractStub.StubFactory<T> factory,
io.grpc.Channel channel,
io.grpc.CallOptions callOptions)
Returns a new stub with the given channel for the provided method configurations.
|