Class HttpJsonPipelineServiceStub (0.30.0)

public class HttpJsonPipelineServiceStub extends PipelineServiceStub

REST stub implementation for the PipelineService service API.

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

Inheritance

java.lang.Object > PipelineServiceStub > HttpJsonPipelineServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PipelineServiceStubSettings settings)

public static final HttpJsonPipelineServiceStub create(PipelineServiceStubSettings settings)
Parameter
NameDescription
settingsPipelineServiceStubSettings
Returns
TypeDescription
HttpJsonPipelineServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonPipelineServiceStub(PipelineServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonPipelineServiceStub(PipelineServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonPipelineServiceStub, 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
settingsPipelineServiceStubSettings
clientContextClientContext

HttpJsonPipelineServiceStub(PipelineServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonPipelineServiceStub(PipelineServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

close()

public final void close()
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

runPipelineCallable()

public UnaryCallable<RunPipelineRequest,Operation> runPipelineCallable()
Returns
TypeDescription
UnaryCallable<RunPipelineRequest,Operation>
Overrides

runPipelineOperationCallable()

public OperationCallable<RunPipelineRequest,RunPipelineResponse,RunPipelineMetadata> runPipelineOperationCallable()
Returns
TypeDescription
OperationCallable<RunPipelineRequest,RunPipelineResponse,RunPipelineMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()