public class GrpcStorageStub extends StorageStub
gRPC stub implementation for the Storage service API.
This class is for advanced usage and reflects the underlying API directly.
Constructors
GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext)
protected GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcStorageStub, using the given settings. This is protected so that
it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameters
GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcStorageStub, using the given settings. This is protected so that
it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameters
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
create(ClientContext clientContext)
public static final GrpcStorageStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(StorageStubSettings settings)
public static final GrpcStorageStub create(StorageStubSettings settings)
Parameter
Returns
Exceptions
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
queryWriteStatusCallable()
public UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusCallable()
Returns
Overrides
readObjectCallable()
public ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> readObjectCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
startResumableWriteCallable()
public UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteCallable()
Returns
Overrides
writeObjectCallable()
public ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse> writeObjectCallable()
Returns
Overrides