public class GrpcAdminServiceStub extends AdminServiceStub
gRPC stub implementation for the AdminService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcAdminServiceStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
GrpcAdminServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcAdminServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Returns | |
---|---|
Type | Description |
GrpcAdminServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(AdminServiceStubSettings settings)
public static final GrpcAdminServiceStub create(AdminServiceStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | AdminServiceStubSettings |
Returns | |
---|---|
Type | Description |
GrpcAdminServiceStub |
Exceptions | |
---|---|
Type | Description |
IOException |
Constructors
GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext)
protected GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcAdminServiceStub, 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 | |
---|---|
Name | Description |
settings | AdminServiceStubSettings |
clientContext | ClientContext |
GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcAdminServiceStub(AdminServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAdminServiceStub, 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 | |
---|---|
Name | Description |
settings | AdminServiceStubSettings |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createReservationCallable()
public UnaryCallable<CreateReservationRequest,Reservation> createReservationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateReservationRequest,Reservation> |
createSubscriptionCallable()
public UnaryCallable<CreateSubscriptionRequest,Subscription> createSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSubscriptionRequest,Subscription> |
createTopicCallable()
public UnaryCallable<CreateTopicRequest,Topic> createTopicCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateTopicRequest,Topic> |
deleteReservationCallable()
public UnaryCallable<DeleteReservationRequest,Empty> deleteReservationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteReservationRequest,Empty> |
deleteSubscriptionCallable()
public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSubscriptionRequest,Empty> |
deleteTopicCallable()
public UnaryCallable<DeleteTopicRequest,Empty> deleteTopicCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteTopicRequest,Empty> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
getReservationCallable()
public UnaryCallable<GetReservationRequest,Reservation> getReservationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetReservationRequest,Reservation> |
getSubscriptionCallable()
public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSubscriptionRequest,Subscription> |
getTopicCallable()
public UnaryCallable<GetTopicRequest,Topic> getTopicCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetTopicRequest,Topic> |
getTopicPartitionsCallable()
public UnaryCallable<GetTopicPartitionsRequest,TopicPartitions> getTopicPartitionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetTopicPartitionsRequest,TopicPartitions> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listReservationTopicsCallable()
public UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse> listReservationTopicsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsResponse> |
listReservationTopicsPagedCallable()
public UnaryCallable<ListReservationTopicsRequest,AdminServiceClient.ListReservationTopicsPagedResponse> listReservationTopicsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReservationTopicsRequest,ListReservationTopicsPagedResponse> |
listReservationsCallable()
public UnaryCallable<ListReservationsRequest,ListReservationsResponse> listReservationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReservationsRequest,ListReservationsResponse> |
listReservationsPagedCallable()
public UnaryCallable<ListReservationsRequest,AdminServiceClient.ListReservationsPagedResponse> listReservationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListReservationsRequest,ListReservationsPagedResponse> |
listSubscriptionsCallable()
public UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> |
listSubscriptionsPagedCallable()
public UnaryCallable<ListSubscriptionsRequest,AdminServiceClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse> |
listTopicSubscriptionsCallable()
public UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> listTopicSubscriptionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> |
listTopicSubscriptionsPagedCallable()
public UnaryCallable<ListTopicSubscriptionsRequest,AdminServiceClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTopicSubscriptionsRequest,ListTopicSubscriptionsPagedResponse> |
listTopicsCallable()
public UnaryCallable<ListTopicsRequest,ListTopicsResponse> listTopicsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTopicsRequest,ListTopicsResponse> |
listTopicsPagedCallable()
public UnaryCallable<ListTopicsRequest,AdminServiceClient.ListTopicsPagedResponse> listTopicsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListTopicsRequest,ListTopicsPagedResponse> |
seekSubscriptionCallable()
public UnaryCallable<SeekSubscriptionRequest,Operation> seekSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SeekSubscriptionRequest,Operation> |
seekSubscriptionOperationCallable()
public OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata> seekSubscriptionOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateReservationCallable()
public UnaryCallable<UpdateReservationRequest,Reservation> updateReservationCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateReservationRequest,Reservation> |
updateSubscriptionCallable()
public UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSubscriptionRequest,Subscription> |
updateTopicCallable()
public UnaryCallable<UpdateTopicRequest,Topic> updateTopicCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateTopicRequest,Topic> |