Package com.google.maps.routing.v2.stub
Class HttpJsonRoutesStub
java.lang.Object
com.google.maps.routing.v2.stub.RoutesStub
com.google.maps.routing.v2.stub.HttpJsonRoutesStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
REST stub implementation for the Routes service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonRoutesStub, using the given settings.protectedHttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonRoutesStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonRoutesStubcreate(ClientContext clientContext) static final HttpJsonRoutesStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonRoutesStubcreate(RoutesStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonRoutesStub
protected HttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
HttpJsonRoutesStub
protected HttpJsonRoutesStub(RoutesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonRoutesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
computeRoutesCallable
- Overrides:
computeRoutesCallablein classRoutesStub
-
computeRouteMatrixCallable
public ServerStreamingCallable<ComputeRouteMatrixRequest,RouteMatrixElement> computeRouteMatrixCallable()- Overrides:
computeRouteMatrixCallablein classRoutesStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRoutesStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-