Class HttpJsonInterconnectsStub (1.38.0)

See more code actions.
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.

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()
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetInterconnectRequest,Interconnect> getCallable()
Overrides

getDiagnosticsCallable()

public UnaryCallable<GetDiagnosticsInterconnectRequest,InterconnectsGetDiagnosticsResponse> getDiagnosticsCallable()
Overrides

insertCallable()

public UnaryCallable<InsertInterconnectRequest,Operation> insertCallable()
Overrides

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListInterconnectsRequest,InterconnectList> listCallable()
Overrides

listPagedCallable()

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

patchCallable()

public UnaryCallable<PatchInterconnectRequest,Operation> patchCallable()
Overrides

patchOperationCallable()

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

setLabelsCallable()

public UnaryCallable<SetLabelsInterconnectRequest,Operation> setLabelsCallable()
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsInterconnectRequest,Operation,Operation> setLabelsOperationCallable()
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()