public class HttpJsonCompletionServiceStub extends CompletionServiceStub
REST stub implementation for the CompletionService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonCompletionServiceStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonCompletionServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(CompletionServiceStubSettings settings)
public static final HttpJsonCompletionServiceStub create(CompletionServiceStubSettings settings)
Parameter
Returns
Exceptions
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Constructors
HttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext)
protected HttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonCompletionServiceStub, 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
HttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonCompletionServiceStub(CompletionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonCompletionServiceStub, 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
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
completeQueryCallable()
public UnaryCallable<CompleteQueryRequest,CompleteQueryResponse> completeQueryCallable()
Returns
Overrides
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Overrides
importCompletionDataCallable()
public UnaryCallable<ImportCompletionDataRequest,Operation> importCompletionDataCallable()
Returns
Overrides
importCompletionDataOperationCallable()
public OperationCallable<ImportCompletionDataRequest,ImportCompletionDataResponse,ImportMetadata> importCompletionDataOperationCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
shutdown()
shutdownNow()
public void shutdownNow()