org.apache.activemq.apollo.broker

QueueSink

class QueueSink [T] extends Sink[T]

A delivery sink which buffers deliveries sent to it up to it's maxSize settings after which it starts flow controlling the sender.

It executes the drainer when it has queued values. The drainer should call poll to get the queued values and then ack the values once they have been processed to allow additional values to be accepted. The refiller is executed once the the queue is drained.

This class should only be called from a single serial dispatch queue.

Linear Supertypes
Sink[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. QueueSink
  2. Sink
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QueueSink (sizer: Sizer[T], maxSize: 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. def ack (amount: Int): Unit

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. var buffer : LinkedList[T]

  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. var drainer : Task

  11. def eq (arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def flatMap [Y] (func: (Y) ⇒ Option[T]): Sink[Y]

    Definition Classes
    Sink
  15. def full : Boolean

    returns

    true if the sink is full

    Definition Classes
    QueueSinkSink
  16. def getClass (): java.lang.Class[_]

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

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

    Attributes
    final
    Definition Classes
    Any
  19. def is_empty : Boolean

  20. def map [Y] (func: (Y) ⇒ T): Sink[Y]

    Definition Classes
    Sink
  21. var maxSize : Int

  22. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  25. def offer (value: T): Boolean

    Attempts to add a value to the sink.

    Attempts to add a value to the sink. If the sink is full, this method will typically return false. The caller should try to offer the value again once the refiller is exectuted.

    returns

    true if the value was added.

    Definition Classes
    QueueSinkSink
  26. def poll : T

  27. var refiller : Task

    Sets a refiller on the sink.

    Sets a refiller on the sink. The refiller is executed when the sink is interested in receiving more deliveries.

    Definition Classes
    QueueSinkSink
  28. val sizer : Sizer[T]

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

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

    Definition Classes
    AnyRef → Any
  31. def unpoll (value: T): Unit

  32. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Sink[T]

Inherited from AnyRef

Inherited from Any