Class GrpcApplicationServiceStub

public class GrpcApplicationServiceStub extends ApplicationServiceStub

gRPC stub implementation for the ApplicationService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ApplicationServiceStub > GrpcApplicationServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcApplicationServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcApplicationServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcApplicationServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcApplicationServiceStub
Exceptions
TypeDescription
IOException

create(ApplicationServiceStubSettings settings)

public static final GrpcApplicationServiceStub create(ApplicationServiceStubSettings settings)
Parameter
NameDescription
settingsApplicationServiceStubSettings
Returns
TypeDescription
GrpcApplicationServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcApplicationServiceStub(ApplicationServiceStubSettings settings, ClientContext clientContext)

protected GrpcApplicationServiceStub(ApplicationServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcApplicationServiceStub, 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
NameDescription
settingsApplicationServiceStubSettings
clientContextClientContext

GrpcApplicationServiceStub(ApplicationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcApplicationServiceStub(ApplicationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcApplicationServiceStub, 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
NameDescription
settingsApplicationServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createApplicationCallable()

public UnaryCallable<CreateApplicationRequest,Application> createApplicationCallable()
Returns
TypeDescription
UnaryCallable<CreateApplicationRequest,Application>
Overrides

deleteApplicationCallable()

public UnaryCallable<DeleteApplicationRequest,Empty> deleteApplicationCallable()
Returns
TypeDescription
UnaryCallable<DeleteApplicationRequest,Empty>
Overrides

getApplicationCallable()

public UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()
Returns
TypeDescription
UnaryCallable<GetApplicationRequest,Application>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listApplicationsCallable()

public UnaryCallable<ListApplicationsRequest,ListApplicationsResponse> listApplicationsCallable()
Returns
TypeDescription
UnaryCallable<ListApplicationsRequest,ListApplicationsResponse>
Overrides

listApplicationsPagedCallable()

public UnaryCallable<ListApplicationsRequest,ApplicationServiceClient.ListApplicationsPagedResponse> listApplicationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListApplicationsRequest,ListApplicationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateApplicationCallable()

public UnaryCallable<UpdateApplicationRequest,Application> updateApplicationCallable()
Returns
TypeDescription
UnaryCallable<UpdateApplicationRequest,Application>
Overrides