Class FlowToDiskOverflowPolicyHandler

  • All Implemented Interfaces:
    OverflowPolicyHandler

    public class FlowToDiskOverflowPolicyHandler
    extends 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 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)