@Generated(value="by gapic-generator-java") public class GrpcStreamingServiceStub extends StreamingServiceStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcStreamingServiceStub(StreamingServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcStreamingServiceStub, using the given settings.
|
protected |
GrpcStreamingServiceStub(StreamingServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcStreamingServiceStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.UnaryCallable<AcquireLeaseRequest,Lease> |
acquireLeaseCallable() |
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcStreamingServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcStreamingServiceStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcStreamingServiceStub |
create(StreamingServiceStubSettings settings) |
com.google.longrunning.stub.GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.BidiStreamingCallable<ReceiveEventsRequest,ReceiveEventsResponse> |
receiveEventsCallable() |
com.google.api.gax.rpc.BidiStreamingCallable<ReceivePacketsRequest,ReceivePacketsResponse> |
receivePacketsCallable() |
com.google.api.gax.rpc.UnaryCallable<ReleaseLeaseRequest,ReleaseLeaseResponse> |
releaseLeaseCallable() |
com.google.api.gax.rpc.UnaryCallable<RenewLeaseRequest,Lease> |
renewLeaseCallable() |
com.google.api.gax.rpc.BidiStreamingCallable<SendPacketsRequest,SendPacketsResponse> |
sendPacketsCallable() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcStreamingServiceStub(StreamingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcStreamingServiceStub(StreamingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcStreamingServiceStub create(StreamingServiceStubSettings settings) throws IOException
IOExceptionpublic static final GrpcStreamingServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcStreamingServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
public com.google.api.gax.rpc.BidiStreamingCallable<SendPacketsRequest,SendPacketsResponse> sendPacketsCallable()
sendPacketsCallable in class StreamingServiceStubpublic com.google.api.gax.rpc.BidiStreamingCallable<ReceivePacketsRequest,ReceivePacketsResponse> receivePacketsCallable()
receivePacketsCallable in class StreamingServiceStubpublic com.google.api.gax.rpc.BidiStreamingCallable<ReceiveEventsRequest,ReceiveEventsResponse> receiveEventsCallable()
receiveEventsCallable in class StreamingServiceStubpublic com.google.api.gax.rpc.UnaryCallable<AcquireLeaseRequest,Lease> acquireLeaseCallable()
acquireLeaseCallable in class StreamingServiceStubpublic com.google.api.gax.rpc.UnaryCallable<RenewLeaseRequest,Lease> renewLeaseCallable()
renewLeaseCallable in class StreamingServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ReleaseLeaseRequest,ReleaseLeaseResponse> releaseLeaseCallable()
releaseLeaseCallable in class StreamingServiceStubpublic final void close()
close in interface AutoCloseableclose in class StreamingServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2025 Google LLC. All rights reserved.