Class UpdateSplittingMailbox

All Implemented Interfaces:
Clearable, IGroupable, AdaptableMailbox, Mailbox

public class UpdateSplittingMailbox extends AbstractUpdateSplittingMailbox<DefaultMessageIndexer,Receiver> implements AdaptableMailbox
A mailbox implementation that splits updates messages according to the standard subset ordering into anti-monotonic (deletions) and monotonic (insertions) updates.
Since:
2.0
  • Field Details

    • adapter

      protected Mailbox adapter
  • Constructor Details

  • Method Details

    • getAdapter

      public Mailbox getAdapter()
      Specified by:
      getAdapter in interface AdaptableMailbox
    • setAdapter

      public void setAdapter(Mailbox adapter)
      Specified by:
      setAdapter in interface AdaptableMailbox
    • postMessage

      public void postMessage(Direction direction, Tuple update, Timestamp timestamp)
      Description copied from interface: Mailbox
      Posts a new message to this mailbox.
      Specified by:
      postMessage in interface Mailbox
      Parameters:
      direction - the direction of the update
      update - the update element
    • deliverAll

      public void deliverAll(MessageSelector kind)
      Description copied from interface: Mailbox
      Delivers all messages according to the given selector from this mailbox. The selector can also be null. In this case, no special separation is expected between the messages.
      Specified by:
      deliverAll in interface Mailbox
      Parameters:
      kind - the message selector
    • toString

      public String toString()
      Overrides:
      toString in class Object