Class HttpJsonRoutesStub (1.57.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonRoutesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRoutesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonRoutesStub
Exceptions
Type Description
IOException

create(RoutesStubSettings settings)

public static final HttpJsonRoutesStub create(RoutesStubSettings settings)
Parameter
Name Description
settings RoutesStubSettings
Returns
Type Description
HttpJsonRoutesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings RoutesStubSettings
clientContext ClientContext

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
Name Description
settings RoutesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteRouteRequest,Operation> deleteCallable()
Returns
Type Description
UnaryCallable<DeleteRouteRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()