public class HttpJsonRevisionsStub extends RevisionsStub
REST stub implementation for the Revisions service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonRevisionsStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonRevisionsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
create(RevisionsStubSettings settings)
public static final HttpJsonRevisionsStub create(RevisionsStubSettings settings)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
HttpJsonRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext)
protected HttpJsonRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonRevisionsStub, 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.
HttpJsonRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonRevisionsStub(RevisionsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRevisionsStub, 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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
deleteRevisionCallable()
public UnaryCallable<DeleteRevisionRequest,Operation> deleteRevisionCallable()
Overrides
deleteRevisionOperationCallable()
public OperationCallable<DeleteRevisionRequest,Revision,Revision> deleteRevisionOperationCallable()
Overrides
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Overrides
getRevisionCallable()
public UnaryCallable<GetRevisionRequest,Revision> getRevisionCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listRevisionsCallable()
public UnaryCallable<ListRevisionsRequest,ListRevisionsResponse> listRevisionsCallable()
Overrides
listRevisionsPagedCallable()
public UnaryCallable<ListRevisionsRequest,RevisionsClient.ListRevisionsPagedResponse> listRevisionsPagedCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()