Class MonitorRequest<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()
      Cancel response request (always to be called to complete/destroy).
      void close()  
      void exception​(int errorCode, java.lang.String errorMessage)
      Exception response notification.
      int getIOID()
      Get I/O ID.
      void response​(int status, short dataType, int dataCount, java.nio.ByteBuffer dataPayloadBuffer)
      Notification response.
      void resubscribe​(Transport transport)  
      • Methods inherited from interface org.epics.ca.Monitor

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • channel

        protected final ChannelImpl<?> channel
        Channel.
      • consumer

        protected java.util.function.Consumer<? super T> consumer
        Reference to an object which will consume monitor update events.
      • closed

        protected final java.util.concurrent.atomic.AtomicBoolean closed
        Closed flag.
    • Constructor Detail

      • MonitorRequest

        public MonitorRequest​(ChannelImpl<?> channel,
                              Transport transport,
                              TypeSupports.TypeSupport<T> typeSupport,
                              int mask,
                              MonitorNotificationService<T> monitorNotificationService,
                              java.util.function.Consumer<? super T> consumer)
        Parameters:
        channel - the channel.
        transport - the transport.
        typeSupport - the object which will provide type support.
        mask - the mask.
        monitorNotificationService - the monitor notification service.
        consumer - the consumer to be informed of monitor update events.
    • Method Detail

      • response

        public void response​(int status,
                             short dataType,
                             int dataCount,
                             java.nio.ByteBuffer dataPayloadBuffer)
        Description copied from interface: NotifyResponseRequest
        Notification response.
        Specified by:
        response in interface NotifyResponseRequest
        Parameters:
        status - the CA status code.
        dataType - the CA data type.
        dataCount - the CA channel element count.
        dataPayloadBuffer - the buffer with the payload
      • cancel

        public void cancel()
        Description copied from interface: ResponseRequest
        Cancel response request (always to be called to complete/destroy).
        Specified by:
        cancel in interface ResponseRequest
      • resubscribe

        public void resubscribe​(Transport transport)
      • exception

        public void exception​(int errorCode,
                              java.lang.String errorMessage)
        Description copied from interface: ResponseRequest
        Exception response notification.
        Specified by:
        exception in interface ResponseRequest
        Parameters:
        errorCode - exception code.
        errorMessage - received detailed message.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface Monitor<T>