Class DataReceiverImpl.MsgReceivingTask

    • Field Detail

      • consumer

        private com.rabbitmq.client.QueueingConsumer consumer
      • runFlag

        private boolean runFlag
      • terminatedFlag

        private boolean terminatedFlag
    • Constructor Detail

      • MsgReceivingTask

        public MsgReceivingTask​(com.rabbitmq.client.QueueingConsumer consumer)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • terminate

        public void terminate()
        Description copied from interface: Terminatable
        Informs the object that it should terminate. Note that there is no guarantee that the termination will happen while this method is running, i.e., this method is not blocking and won't wait for the object to terminate.
        Specified by:
        terminate in interface Terminatable
      • isTerminated

        public boolean isTerminated()
        Description copied from interface: Terminatable
        Returns a flag whether the object has been asked to terminate. Note that if the method returns true, it does not have to be terminated.
        Specified by:
        isTerminated in interface Terminatable
        Returns:
        returns true if it received a request to terminate