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, _expiration: Long)

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 _expiration : Long

  8. var _size : Int

  9. 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
  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. def as_head : Head

    Definition Classes
    EntryState
  12. def as_loaded : Loaded

    Definition Classes
    EntryState
  13. def as_swapped : Swapped

    Definition Classes
    EntryState
  14. def as_swapped_range : SwappedRange

    Definition Classes
    SwappedRangeEntryState
  15. def as_tail : Tail

    Definition Classes
    EntryState
  16. def clone (): AnyRef

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

    Combines this queue entry with the next queue entry.

  18. def count : Int

    Gets number of messages that this entry represents

    Gets number of messages that this entry represents

    Definition Classes
    SwappedRangeEntryState
  19. 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.

    returns

    true if at least one subscription advanced to the next entry as a result of dispatching.

    Definition Classes
    EntryState
  20. def entry : QueueEntry

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

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

    Definition Classes
    AnyRef → Any
  23. def expiration : Long

    When the entry expires or 0 if it does not expire.

    When the entry expires or 0 if it does not expire.

    Definition Classes
    SwappedRangeEntryState
  24. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  26. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  28. def is_acquired : Boolean

    Is the entry acquired by a subscription.

    Is the entry acquired by a subscription.

    Definition Classes
    EntryState
  29. def is_swapped_or_swapping_out : Boolean

    Definition Classes
    SwappedRangeEntryState
  30. def label : String

    Retuns a string label used to describe this state.

    Retuns a string label used to describe this state.

    Definition Classes
    SwappedRangeEntryState
  31. var last : Long

  32. var loading : Boolean

  33. def memory_space : MemorySpace

    Definition Classes
    EntryState
  34. def message_key : Long

    Gets the message key for the entry.

    Gets the message key for the entry.

    Definition Classes
    EntryState
  35. def message_locator : AtomicReference[AnyRef]

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  39. def redelivered : Unit

    Called to increment the redelivery counter

    Called to increment the redelivery counter

    Definition Classes
    EntryState
  40. def redelivery_count : Short

    When the entry expires or 0 if it does not expire.

    When the entry expires or 0 if it does not expire.

    Definition Classes
    EntryState
  41. 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 acquired ack.

    Definition Classes
    EntryState
  42. def sender : Array[DestinationAddress]

    Definition Classes
    EntryState
  43. 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
  44. def swap_in (space: MemorySpace): 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
  45. 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
  46. def swap_range : Unit

    Definition Classes
    EntryState
  47. def synchronized [T0] (arg0: ⇒ T0): T0

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from EntryState

Inherited from AnyRef

Inherited from Any