Class HttpJsonSimulatorStub (0.32.0)

public class HttpJsonSimulatorStub extends SimulatorStub

REST stub implementation for the Simulator service API.

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

Inheritance

java.lang.Object > SimulatorStub > HttpJsonSimulatorStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonSimulatorStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonSimulatorStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SimulatorStubSettings settings)

public static final HttpJsonSimulatorStub create(SimulatorStubSettings settings)
Parameter
Name Description
settings SimulatorStubSettings
Returns
Type Description
HttpJsonSimulatorStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext)

protected HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext)

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

HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSimulatorStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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()