Class HttpJsonRoutesStub (1.40.0)

public class HttpJsonRoutesStub extends RoutesStub

REST stub implementation for the Routes service API.

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

Inheritance

java.lang.Object > RoutesStub > HttpJsonRoutesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RoutesStubSettings settings)

public static final HttpJsonRoutesStub create(RoutesStubSettings settings)
Parameter
NameDescription
settingsRoutesStubSettings
Returns
TypeDescription
HttpJsonRoutesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext)

protected HttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRoutesStub, 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
settingsRoutesStubSettings
clientContextClientContext

HttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRoutesStub, 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
settingsRoutesStubSettings
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<DeleteRouteRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteRouteRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetRouteRequest,Route> getCallable()
Returns
TypeDescription
UnaryCallable<GetRouteRequest,Route>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRoutesRequest,RouteList> listCallable()
Returns
TypeDescription
UnaryCallable<ListRoutesRequest,RouteList>
Overrides

listPagedCallable()

public UnaryCallable<ListRoutesRequest,RoutesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRoutesRequest,ListPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()