LavinMQ::AMQP::PriorityQueue::PriorityMessageStore
Inherits LavinMQ::MessageStore < Reference < Object
Instance methods
[](sp : SegmentPosition) : BytesMessage
Sourcebytesize
Sourceclose
Sourcedelete(sp) : Nil
Sourcedelete
Sourceempty?
Sourceenvelope(sp : SegmentPosition, redelivered = false) : Envelope
Like #[], as an envelope, with the segment position made from the message
first?
Sourcepurge_all
Sourcepush(msg) : SegmentPosition
Sourcerequeue(sp : SegmentPosition)
Sourceshift?(consumer = nil) : Envelope | Nil
The envelope points into the segment, so it's only valid while the lock guarding the store is held, see #shift_with_lease? for using it outside it
size
Source