Class HttpJsonCompletionStub (2.5.0)

public class HttpJsonCompletionStub extends CompletionStub

REST stub implementation for the Completion service API.

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

Inheritance

java.lang.Object > CompletionStub > HttpJsonCompletionStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(CompletionStubSettings settings)

public static final HttpJsonCompletionStub create(CompletionStubSettings settings)
Parameter
NameDescription
settingsCompletionStubSettings
Returns
TypeDescription
HttpJsonCompletionStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonCompletionStub(CompletionStubSettings settings, ClientContext clientContext)

protected HttpJsonCompletionStub(CompletionStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCompletionStub, 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
settingsCompletionStubSettings
clientContextClientContext

HttpJsonCompletionStub(CompletionStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCompletionStub(CompletionStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCompletionStub, 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
settingsCompletionStubSettings
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

completeQueryCallable()

public UnaryCallable<CompleteQueryRequest,CompleteQueryResponse> completeQueryCallable()
Returns
TypeDescription
UnaryCallable<CompleteQueryRequest,CompleteQueryResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()