org.apache.activemq.apollo.broker.QueueEntry

SwappedRange

class SwappedRange extends EntryState

A SwappedRange state is assigned entry is used to represent a rage of swapped entries.

Even entries that are Swapped can us a significant amount of memory if the queue is holding thousands of them. Multiple entries in the swapped state can be combined into a single entry in the SwappedRange state thereby conserving even more memory. A SwappedRange entry only tracks the first, and last sequnce ids of the range. When the entry needs to be loaded from the range it replaces the swapped range entry with all the swapped entries by querying the store of all the message keys for the entries in the range.

Linear Supertypes
EntryState, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SwappedRange
  2. EntryState
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SwappedRange (last: Long, _count: Int, _size: Int)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. var _count : Int

  7. var _size : Int

  8. def advance (advancing: Seq[Subscription]): Unit

    Advances the specified subscriptions to the next entry in the linked list

    Advances the specified subscriptions to the next entry in the linked list

    Definition Classes
    EntryState
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def as_head : Head

    Definition Classes
    EntryState
  11. def as_loaded : Loaded

    Definition Classes
    EntryState
  12. def as_swapped : Swapped

    Definition Classes
    EntryState
  13. def as_swapped_range : SwappedRange

    Definition Classes
    SwappedRangeEntryState
  14. def as_tail : Tail

    Definition Classes
    EntryState
  15. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def combineNext (): Unit

    Combines this queue entry with the next queue entry.

  17. def count : Int

    Gets number of messages that this entry represents

    Gets number of messages that this entry represents

    Definition Classes
    SwappedRangeEntryState
  18. def dispatch (): Boolean

    Attempts to dispatch the current entry to the subscriptions position at the entry.

    Attempts to dispatch the current entry to the subscriptions position at the entry.

    Definition Classes
    EntryState
  19. def entry : QueueEntry

    Attributes
    final
    Definition Classes
    EntryState
  20. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  21. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  22. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  24. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  25. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  26. def is_swapped_or_swapping_out : Boolean

    Definition Classes
    SwappedRangeEntryState
  27. def label : String

    Retuns a string label used to describe this state.

    Retuns a string label used to describe this state.

    Definition Classes
    SwappedRangeEntryState
  28. var last : Long

  29. def message_key : Long

    Gets the message key for the entry.

    Gets the message key for the entry.

    Definition Classes
    EntryState
  30. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  33. def remove : Unit

    Removes the entry from the queue's linked list of entries.

    Removes the entry from the queue's linked list of entries. This gets called as a result of an aquired ack.

    Definition Classes
    EntryState
  34. def size : Int

    Gets the size of this entry in bytes.

    Gets the size of this entry in bytes. The head and tail entries always return 0.

    Definition Classes
    SwappedRangeEntryState
  35. def swap_in (): Unit

    Triggers the entry to get swapped in if it's not already swapped in.

    Triggers the entry to get swapped in if it's not already swapped in.

    Definition Classes
    SwappedRangeEntryState
  36. def swap_out (asap: Boolean): Unit

    Triggers the entry to get swapped out if it's not already swapped.

    Triggers the entry to get swapped out if it's not already swapped.

    Definition Classes
    EntryState
  37. def swap_range : Unit

    Definition Classes
    EntryState
  38. var swapping_in : Boolean

  39. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  40. def toString (): String

    Definition Classes
    SwappedRange → AnyRef → Any
  41. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from EntryState

Inherited from AnyRef

Inherited from Any