Class HttpJsonConnectionServiceStub (2.16.0)

public class HttpJsonConnectionServiceStub extends ConnectionServiceStub

REST stub implementation for the ConnectionService service API.

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

Inheritance

java.lang.Object > ConnectionServiceStub > HttpJsonConnectionServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ConnectionServiceStubSettings settings)

public static final HttpJsonConnectionServiceStub create(ConnectionServiceStubSettings settings)
Parameter
NameDescription
settingsConnectionServiceStubSettings
Returns
TypeDescription
HttpJsonConnectionServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonConnectionServiceStub, 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
settingsConnectionServiceStubSettings
clientContextClientContext

HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonConnectionServiceStub, 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
settingsConnectionServiceStubSettings
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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConnectionsCallable()

public UnaryCallable<ListConnectionsRequest,ListConnectionsResponse> listConnectionsCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionsRequest,ListConnectionsResponse>
Overrides

listConnectionsPagedCallable()

public UnaryCallable<ListConnectionsRequest,ConnectionServiceClient.ListConnectionsPagedResponse> listConnectionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionsRequest,ListConnectionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()