Class HttpJsonInterconnectsStub (1.12.1)

public class HttpJsonInterconnectsStub extends InterconnectsStub

REST stub implementation for the Interconnects service API.

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

Inheritance

java.lang.Object > InterconnectsStub > HttpJsonInterconnectsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(InterconnectsStubSettings settings)

public static final HttpJsonInterconnectsStub create(InterconnectsStubSettings settings)
Parameter
NameDescription
settingsInterconnectsStubSettings
Returns
TypeDescription
HttpJsonInterconnectsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonInterconnectsStub(InterconnectsStubSettings settings, ClientContext clientContext)

protected HttpJsonInterconnectsStub(InterconnectsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonInterconnectsStub, 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
settingsInterconnectsStubSettings
clientContextClientContext

HttpJsonInterconnectsStub(InterconnectsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonInterconnectsStub(InterconnectsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

deleteCallable()

public UnaryCallable<DeleteInterconnectRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteInterconnectRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteInterconnectRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteInterconnectRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetInterconnectRequest,Interconnect> getCallable()
Returns
TypeDescription
UnaryCallable<GetInterconnectRequest,Interconnect>
Overrides

getDiagnosticsCallable()

public UnaryCallable<GetDiagnosticsInterconnectRequest,InterconnectsGetDiagnosticsResponse> getDiagnosticsCallable()
Returns
TypeDescription
UnaryCallable<GetDiagnosticsInterconnectRequest,InterconnectsGetDiagnosticsResponse>
Overrides

insertCallable()

public UnaryCallable<InsertInterconnectRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertInterconnectRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertInterconnectRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertInterconnectRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListInterconnectsRequest,InterconnectList> listCallable()
Returns
TypeDescription
UnaryCallable<ListInterconnectsRequest,InterconnectList>
Overrides

listPagedCallable()

public UnaryCallable<ListInterconnectsRequest,InterconnectsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInterconnectsRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchInterconnectRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchInterconnectRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchInterconnectRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchInterconnectRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()