Class GrpcSimulatorStub (0.1.0)

public class GrpcSimulatorStub extends SimulatorStub

gRPC stub implementation for the Simulator service API.

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

Inheritance

java.lang.Object > SimulatorStub > GrpcSimulatorStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SimulatorStubSettings settings)

public static final GrpcSimulatorStub create(SimulatorStubSettings settings)
Parameter
NameDescription
settingsSimulatorStubSettings
Returns
TypeDescription
GrpcSimulatorStub
Exceptions
TypeDescription
IOException

Constructors

GrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext)

protected GrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSimulatorStub, 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
settingsSimulatorStubSettings
clientContextClientContext

GrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcSimulatorStub, 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
settingsSimulatorStubSettings
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

createReplayCallable()

public UnaryCallable<CreateReplayRequest,Operation> createReplayCallable()
Returns
TypeDescription
UnaryCallable<CreateReplayRequest,Operation>
Overrides

createReplayOperationCallable()

public OperationCallable<CreateReplayRequest,Replay,ReplayOperationMetadata> createReplayOperationCallable()
Returns
TypeDescription
OperationCallable<CreateReplayRequest,Replay,ReplayOperationMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getReplayCallable()

public UnaryCallable<GetReplayRequest,Replay> getReplayCallable()
Returns
TypeDescription
UnaryCallable<GetReplayRequest,Replay>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listReplayResultsCallable()

public UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse> listReplayResultsCallable()
Returns
TypeDescription
UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse>
Overrides

listReplayResultsPagedCallable()

public UnaryCallable<ListReplayResultsRequest,SimulatorClient.ListReplayResultsPagedResponse> listReplayResultsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReplayResultsRequest,ListReplayResultsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()