Class HttpJsonExecutionsStub (2.6.0)

public class HttpJsonExecutionsStub extends ExecutionsStub

REST stub implementation for the Executions service API.

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

Inheritance

java.lang.Object > ExecutionsStub > HttpJsonExecutionsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonExecutionsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonExecutionsStub
Exceptions
TypeDescription
IOException

create(ExecutionsStubSettings settings)

public static final HttpJsonExecutionsStub create(ExecutionsStubSettings settings)
Parameter
NameDescription
settingsExecutionsStubSettings
Returns
TypeDescription
HttpJsonExecutionsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext)

protected HttpJsonExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonExecutionsStub, 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
settingsExecutionsStubSettings
clientContextClientContext

HttpJsonExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonExecutionsStub(ExecutionsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonExecutionsStub, 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
settingsExecutionsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

cancelExecutionCallable()

public UnaryCallable<CancelExecutionRequest,Execution> cancelExecutionCallable()
Returns
TypeDescription
UnaryCallable<CancelExecutionRequest,Execution>
Overrides

close()

public final void close()
Overrides

createExecutionCallable()

public UnaryCallable<CreateExecutionRequest,Execution> createExecutionCallable()
Returns
TypeDescription
UnaryCallable<CreateExecutionRequest,Execution>
Overrides

getExecutionCallable()

public UnaryCallable<GetExecutionRequest,Execution> getExecutionCallable()
Returns
TypeDescription
UnaryCallable<GetExecutionRequest,Execution>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listExecutionsCallable()

public UnaryCallable<ListExecutionsRequest,ListExecutionsResponse> listExecutionsCallable()
Returns
TypeDescription
UnaryCallable<ListExecutionsRequest,ListExecutionsResponse>
Overrides

listExecutionsPagedCallable()

public UnaryCallable<ListExecutionsRequest,ExecutionsClient.ListExecutionsPagedResponse> listExecutionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListExecutionsRequest,ListExecutionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()