Class GrpcSimulatorStub
java.lang.Object
com.google.cloud.policysimulator.v1.stub.SimulatorStub
com.google.cloud.policysimulator.v1.stub.GrpcSimulatorStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the Simulator service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcSimulatorStub, using the given settings.protectedGrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcSimulatorStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcSimulatorStubcreate(ClientContext clientContext) static final GrpcSimulatorStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcSimulatorStubcreate(SimulatorStubSettings settings) booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.policysimulator.v1.stub.SimulatorStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcSimulatorStub
protected GrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcSimulatorStub
protected GrpcSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcSimulatorStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classSimulatorStub
-
getReplayCallable
- Overrides:
getReplayCallablein classSimulatorStub
-
createReplayCallable
- Overrides:
createReplayCallablein classSimulatorStub
-
createReplayOperationCallable
public OperationCallable<CreateReplayRequest,Replay, createReplayOperationCallable()ReplayOperationMetadata> - Overrides:
createReplayOperationCallablein classSimulatorStub
-
listReplayResultsCallable
public UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse> listReplayResultsCallable()- Overrides:
listReplayResultsCallablein classSimulatorStub
-
listReplayResultsPagedCallable
public UnaryCallable<ListReplayResultsRequest,SimulatorClient.ListReplayResultsPagedResponse> listReplayResultsPagedCallable()- Overrides:
listReplayResultsPagedCallablein classSimulatorStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSimulatorStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-