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. SwappedRange
  2. EntryState
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. var _count: Int

  7. var _expiration: Long

  8. var _size: Int

  9. def acquiring_subscription: Acquirer

    Definition Classes
    EntryState
  10. 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
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def as_head: Head

    Definition Classes
    EntryState
  13. def as_loaded: Loaded

    Definition Classes
    EntryState
  14. def as_swapped: Swapped

    Definition Classes
    EntryState
  15. def as_swapped_range: SwappedRange

    Definition Classes
    SwappedRangeEntryState
  16. def as_tail: Tail

    Definition Classes
    EntryState
  17. def clone(): AnyRef

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

    Combines this queue entry with the next queue entry.

  19. def count: Int

    Gets number of messages that this entry represents

    Gets number of messages that this entry represents

    Definition Classes
    SwappedRangeEntryState
  20. 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
  21. final def entry: QueueEntry

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

    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  24. 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
  25. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def fire_swapped_in_watchers: Unit

  27. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

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

    Definition Classes
    Any
  30. def is_acquired: Boolean

    Is the entry acquired by a subscription.

    Is the entry acquired by a subscription.

    Definition Classes
    EntryState
  31. def is_swapped_or_swapping_out: Boolean

    Definition Classes
    SwappedRangeEntryState
  32. def label: String

    Retuns a string label used to describe this state.

    Retuns a string label used to describe this state.

    Definition Classes
    SwappedRangeEntryState
  33. var last: Long

  34. var loading: Boolean

  35. def memory_space: MemorySpace

    Definition Classes
    EntryState
  36. def message_key: Long

    Gets the message key for the entry.

    Gets the message key for the entry.

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

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

    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  41. def redelivered: Unit

    Called to increment the redelivery counter

    Called to increment the redelivery counter

    Definition Classes
    EntryState
  42. 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
  43. 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
  44. def sender: List[DestinationAddress]

    Definition Classes
    EntryState
  45. 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
  46. 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
  47. 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
  48. def swap_range: Unit

    Definition Classes
    EntryState
  49. var swapped_in_watchers: List[() ⇒ Unit]

  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  51. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from EntryState

Inherited from AnyRef

Inherited from Any

Ungrouped