Class GrpcApplicationsStub (2.31.0)

public class GrpcApplicationsStub extends ApplicationsStub

gRPC stub implementation for the Applications service API.

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

Inheritance

java.lang.Object > ApplicationsStub > GrpcApplicationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ApplicationsStubSettings settings)

public static final GrpcApplicationsStub create(ApplicationsStubSettings settings)
Parameter
NameDescription
settingsApplicationsStubSettings
Returns
TypeDescription
GrpcApplicationsStub
Exceptions
TypeDescription
IOException

Constructors

GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext)

protected GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcApplicationsStub, 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
settingsApplicationsStubSettings
clientContextClientContext

GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcApplicationsStub, 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
settingsApplicationsStubSettings
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,Operation> createApplicationCallable()
Returns
TypeDescription
UnaryCallable<CreateApplicationRequest,Operation>
Overrides

createApplicationOperationCallable()

public OperationCallable<CreateApplicationRequest,Application,OperationMetadataV1> createApplicationOperationCallable()
Returns
TypeDescription
OperationCallable<CreateApplicationRequest,Application,OperationMetadataV1>
Overrides

getApplicationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

repairApplicationCallable()

public UnaryCallable<RepairApplicationRequest,Operation> repairApplicationCallable()
Returns
TypeDescription
UnaryCallable<RepairApplicationRequest,Operation>
Overrides

repairApplicationOperationCallable()

public OperationCallable<RepairApplicationRequest,Application,OperationMetadataV1> repairApplicationOperationCallable()
Returns
TypeDescription
OperationCallable<RepairApplicationRequest,Application,OperationMetadataV1>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateApplicationCallable()

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

updateApplicationOperationCallable()

public OperationCallable<UpdateApplicationRequest,Application,OperationMetadataV1> updateApplicationOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateApplicationRequest,Application,OperationMetadataV1>
Overrides