Class FlowToDiskOverflowPolicyHandler

  • All Implemented Interfaces:
    OverflowPolicyHandler

    public class FlowToDiskOverflowPolicyHandler
    extends java.lang.Object
    implements OverflowPolicyHandler
    If the queue breaches a limit, newly arriving messages are written to disk and the in-memory representation of the message is minimised. The Broker will transparently retrieve messages from disk as they are required by a consumer or management. The flow to disk policy does not actually restrict the overall size of the queue, merely the space occupied in memory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkOverflow​(QueueEntry newlyEnqueued)
      Checks queue overflow (is called when adding or deleting queue entry)
      • Methods inherited from class java.lang.Object

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

      • checkOverflow

        public void checkOverflow​(QueueEntry newlyEnqueued)
        Checks queue overflow (is called when adding or deleting queue entry)
        Specified by:
        checkOverflow in interface OverflowPolicyHandler
        Parameters:
        newlyEnqueued - QueueEntry enqueued (is null on deletion)