Class AbstractCop1Api<T>

  • All Implemented Interfaces:
    Api<T>
    Direct Known Subclasses:
    Cop1ApiClient

    public abstract class AbstractCop1Api<T>
    extends Object
    implements Api<T>
      Methods for virtual channel TC links that have ``useCop1: true``.
      This service contains methods for setting/getting the configuration and
      performing various operations.
      In addition, a websocket subscription is available that will allow receiving periodically the status.
     
    • Constructor Detail

      • AbstractCop1Api

        public AbstractCop1Api()
    • Method Detail

      • initialize

        public abstract void initialize​(T ctx,
                                        InitializeRequest request,
                                        Observer<com.google.protobuf.Empty> observer)
          Initialize COP-1 in case state is UNITIALIZED
         
      • resume

        public abstract void resume​(T ctx,
                                    ResumeRequest request,
                                    Observer<com.google.protobuf.Empty> observer)
          Resume COP-1 operation in case state is SUSPENDED
         
      • disable

        public abstract void disable​(T ctx,
                                     DisableRequest request,
                                     Observer<com.google.protobuf.Empty> observer)
          Disable COP-1 operation
         
          This causes the sent queue to be purged.
          All TCs from the wait queue, as well as newly received TCs
          are sent immediately
         
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface Api<T>
      • getRequestPrototype

        public final com.google.protobuf.Message getRequestPrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getRequestPrototype in interface Api<T>
      • getResponsePrototype

        public final com.google.protobuf.Message getResponsePrototype​(com.google.protobuf.Descriptors.MethodDescriptor method)
        Specified by:
        getResponsePrototype in interface Api<T>
      • callMethod

        public final void callMethod​(com.google.protobuf.Descriptors.MethodDescriptor method,
                                     T ctx,
                                     com.google.protobuf.Message request,
                                     Observer<com.google.protobuf.Message> future)
        Specified by:
        callMethod in interface Api<T>
      • callMethod

        public final Observer<com.google.protobuf.Message> callMethod​(com.google.protobuf.Descriptors.MethodDescriptor method,
                                                                      T ctx,
                                                                      Observer<com.google.protobuf.Message> future)
        Specified by:
        callMethod in interface Api<T>