Class HttpJsonInterconnectLocationsStub (1.42.0)

public class HttpJsonInterconnectLocationsStub extends InterconnectLocationsStub

REST stub implementation for the InterconnectLocations service API.

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

Inheritance

java.lang.Object > InterconnectLocationsStub > HttpJsonInterconnectLocationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(InterconnectLocationsStubSettings settings)

public static final HttpJsonInterconnectLocationsStub create(InterconnectLocationsStubSettings settings)
Parameter
NameDescription
settingsInterconnectLocationsStubSettings
Returns
TypeDescription
HttpJsonInterconnectLocationsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonInterconnectLocationsStub(InterconnectLocationsStubSettings settings, ClientContext clientContext)

protected HttpJsonInterconnectLocationsStub(InterconnectLocationsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonInterconnectLocationsStub, 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
settingsInterconnectLocationsStubSettings
clientContextClientContext

HttpJsonInterconnectLocationsStub(InterconnectLocationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonInterconnectLocationsStub(InterconnectLocationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonInterconnectLocationsStub, 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
settingsInterconnectLocationsStubSettings
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

getCallable()

public UnaryCallable<GetInterconnectLocationRequest,InterconnectLocation> getCallable()
Returns
TypeDescription
UnaryCallable<GetInterconnectLocationRequest,InterconnectLocation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListInterconnectLocationsRequest,InterconnectLocationList> listCallable()
Returns
TypeDescription
UnaryCallable<ListInterconnectLocationsRequest,InterconnectLocationList>
Overrides

listPagedCallable()

public UnaryCallable<ListInterconnectLocationsRequest,InterconnectLocationsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInterconnectLocationsRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()