Class HttpJsonOperationsStub

  • All Implemented Interfaces:
    com.google.api.gax.core.BackgroundResource, java.lang.AutoCloseable

    public class HttpJsonOperationsStub
    extends OperationsStub
    REST stub implementation for the Operations service API.

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

    • Constructor Detail

      • HttpJsonOperationsStub

        protected HttpJsonOperationsStub​(OperationsStubSettings settings,
                                         com.google.api.gax.rpc.ClientContext clientContext)
                                  throws java.io.IOException
        Constructs an instance of HttpJsonOperationsStub, 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:
        java.io.IOException
      • HttpJsonOperationsStub

        protected HttpJsonOperationsStub​(OperationsStubSettings settings,
                                         com.google.api.gax.rpc.ClientContext clientContext,
                                         HttpJsonStubCallableFactory callableFactory,
                                         com.google.protobuf.TypeRegistry typeRegistry)
                                  throws java.io.IOException
        Constructs an instance of HttpJsonOperationsStub, 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:
        java.io.IOException
    • Method Detail

      • create

        public static final HttpJsonOperationsStub create​(com.google.api.gax.rpc.ClientContext clientContext)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        public static final HttpJsonOperationsStub create​(com.google.api.gax.rpc.ClientContext clientContext,
                                                          HttpJsonStubCallableFactory callableFactory,
                                                          com.google.protobuf.TypeRegistry typeRegistry)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getMethodDescriptors

        @InternalApi
        public static java.util.List<ApiMethodDescriptor> getMethodDescriptors()
      • listOperationsCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.ListOperationsRequest,​com.google.longrunning.ListOperationsResponse> listOperationsCallable()
        Overrides:
        listOperationsCallable in class OperationsStub
      • getOperationCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.GetOperationRequest,​com.google.longrunning.Operation> getOperationCallable()
        Overrides:
        getOperationCallable in class OperationsStub
      • deleteOperationCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.DeleteOperationRequest,​com.google.protobuf.Empty> deleteOperationCallable()
        Overrides:
        deleteOperationCallable in class OperationsStub
      • cancelOperationCallable

        public com.google.api.gax.rpc.UnaryCallable<com.google.longrunning.CancelOperationRequest,​com.google.protobuf.Empty> cancelOperationCallable()
        Overrides:
        cancelOperationCallable in class OperationsStub
      • close

        public final void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class OperationsStub
      • shutdown

        public void shutdown()
      • isShutdown

        public boolean isShutdown()
      • isTerminated

        public boolean isTerminated()
      • shutdownNow

        public void shutdownNow()
      • awaitTermination

        public boolean awaitTermination​(long duration,
                                        java.util.concurrent.TimeUnit unit)
                                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException