Class HttpJsonTetherStub (2.9.0)

public class HttpJsonTetherStub extends TetherStub

REST stub implementation for the Tether service API.

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

Inheritance

java.lang.Object > TetherStub > HttpJsonTetherStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(TetherStubSettings settings)

public static final HttpJsonTetherStub create(TetherStubSettings settings)
Parameter
NameDescription
settingsTetherStubSettings
Returns
TypeDescription
HttpJsonTetherStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonTetherStub(TetherStubSettings settings, ClientContext clientContext)

protected HttpJsonTetherStub(TetherStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonTetherStub, 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
settingsTetherStubSettings
clientContextClientContext

HttpJsonTetherStub(TetherStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTetherStub(TetherStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonTetherStub, 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
settingsTetherStubSettings
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

egressCallable()

public BidiStreamingCallable<EgressResponse,EgressRequest> egressCallable()
Returns
TypeDescription
BidiStreamingCallable<EgressResponse,EgressRequest>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()