org.eclipse.viatra.query.runtime.rete.network.mailbox

## Interface AdaptableMailbox

- All Superinterfaces:
    Clearable, IGroupable, Mailbox

      public interface AdaptableMailbox
      extends Mailbox

  An adaptable mailbox can be wrapped by another mailbox to act in behalf of that. The significance of the adaptation is that the adaptee will notify the `CommunicationTracker` about updates by promoting the adapter itself. Adaptable mailboxes are used by the `BehaviorChangingMailbox`. Compare this with `TimelyMailboxProxy`. That one also wraps another mailbox in order to perform preprocessing on the messages sent to the original recipient.
  Since:
    2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Mailbox` | `getAdapter()`
    `void` | `setAdapter(Mailbox adapter)`

    - ### Methods inherited from interface org.eclipse.viatra.query.runtime.rete.network.mailbox.Mailbox

      `deliverAll, getCurrentGroup, getReceiver, isEmpty, postMessage, setCurrentGroup`

    - ### Methods inherited from interface org.eclipse.viatra.query.runtime.matchers.util.Clearable

      `clear`

- - ### Method Detail

    - #### getAdapter

          Mailbox getAdapter()

    - #### setAdapter

          void setAdapter(Mailbox adapter)