Class GrpcSimulatorStub (0.31.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcSimulatorStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSimulatorStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcSimulatorStub
Exceptions
Type Description
IOException

create(SimulatorStubSettings settings)

public static final GrpcSimulatorStub create(SimulatorStubSettings settings)
Parameter
Name Description
settings SimulatorStubSettings
Returns
Type Description
GrpcSimulatorStub
Exceptions
Type Description
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
Name Description
settings SimulatorStubSettings
clientContext ClientContext

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
Name Description
settings SimulatorStubSettings
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()
Overrides

createReplayCallable()

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

createReplayOperationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getReplayCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listReplayResultsCallable()

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

listReplayResultsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()