Package

org.squbs.pattern

stream

Permalink

package stream

Visibility
  1. Public
  2. All

Type Members

  1. class BooleanSerializer extends QueueSerializer[Boolean]

    Permalink
  2. class BroadcastBuffer[T] extends BroadcastBufferBase[T, T]

    Permalink

    Fan-out the stream to several streams emitting each incoming upstream element to all downstream consumers.

    Fan-out the stream to several streams emitting each incoming upstream element to all downstream consumers.

    Emits when one of the inputs has an element available

    Does not back-pressure upstream when downstream back-pressures, instead buffers the stream element to memory mapped queue

    Completes when upstream completes and all downstream finish consuming stream elements

    Cancels when downstream cancels

  3. class BroadcastBufferAtLeastOnce[T] extends BroadcastBufferBase[T, Event[T]]

    Permalink

    Fan-out the stream to several streams emitting each incoming upstream element to all downstream consumers.

    Fan-out the stream to several streams emitting each incoming upstream element to all downstream consumers.

    Emits when one of the inputs has an element available

    Does not back-pressure upstream when downstream back-pressures, instead buffers the stream element to memory mapped queue

    Completes when upstream completes and all downstream finish consuming stream elements

    Cancels when downstream cancels

    A commit guarantee can be ensured to avoid data lost while consuming stream elements by adding a commit stage after downstream consumer.

  4. abstract class BroadcastBufferBase[T, S] extends GraphStage[UniformFanOutShape[T, S]]

    Permalink
  5. class ByteSerializer extends QueueSerializer[Byte]

    Permalink
  6. class ByteStringSerializer extends QueueSerializer[ByteString]

    Permalink
  7. class CharSerializer extends QueueSerializer[Char]

    Permalink
  8. class CommitOrderException extends RuntimeException

    Permalink
  9. sealed trait CommitOrderPolicy extends AnyRef

    Permalink
  10. case class Committed(outportId: Int, index: Long) extends Product with Serializable

    Permalink
  11. class DoubleSerializer extends QueueSerializer[Double]

    Permalink
  12. case class Event[T](outputPortId: Int, index: Long, entry: T) extends Product with Serializable

    Permalink
  13. class FloatSerializer extends QueueSerializer[Float]

    Permalink
  14. class IndexFile extends MappedFile

    Permalink
  15. class IntSerializer extends QueueSerializer[Int]

    Permalink
  16. class LongSerializer extends QueueSerializer[Long]

    Permalink
  17. class ObjectSerializer[T] extends QueueSerializer[T]

    Permalink
  18. class PersistentBuffer[T] extends PersistentBufferBase[T, T]

    Permalink

    Persists all incoming upstream element to a memory mapped queue before publishing it to downstream consumer.

    Persists all incoming upstream element to a memory mapped queue before publishing it to downstream consumer.

    Emits when one of the inputs has an element available

    Does not Backpressure upstream when downstream backpressures, instead buffers the stream element to memory mapped queue

    Completes when upstream completes

    Cancels when downstream cancels

  19. class PersistentBufferAtLeastOnce[T] extends PersistentBufferBase[T, Event[T]]

    Permalink

    Persists all incoming upstream element to a memory mapped queue before publishing it to downstream consumer.

    Persists all incoming upstream element to a memory mapped queue before publishing it to downstream consumer.

    Emits when one of the inputs has an element available

    Does not Backpressure upstream when downstream backpressures, instead buffers the stream element to memory mapped queue

    Completes when upstream completes

    Cancels when downstream cancels

    A commit guarantee can be ensured to avoid data lost while consuming stream elements by adding a commit stage after downstream consumer.

  20. abstract class PersistentBufferBase[T, S] extends GraphStage[FlowShape[T, S]]

    Permalink
  21. class PersistentQueue[T] extends AnyRef

    Permalink

    Persistent queue using Chronicle Queue as implementation.

    Persistent queue using Chronicle Queue as implementation.

    T

    The type of elements to be stored in the queue.

  22. class PersistentQueueCloserActor[T] extends Actor with ActorLogging

    Permalink
  23. case class PushedAndCommitted(outportId: Int, pushIndex: Long, commitIndex: Long) extends Product with Serializable

    Permalink
  24. case class QueueConfig(persistDir: File, rollCycle: RollCycle = QueueConfig.defaultCycle, wireType: WireType = QueueConfig.defaultWireType, blockSize: Long = QueueConfig.defaultBlockSize, indexSpacing: Int = ..., indexCount: Int = ..., isBuffered: Boolean = false, epoch: Long = 0L, outputPorts: Int = QueueConfig.defaultOutputPort, commitOrderPolicy: CommitOrderPolicy = ...) extends Product with Serializable

    Permalink
  25. trait QueueSerializer[T] extends AnyRef

    Permalink
  26. class ShortSerializer extends QueueSerializer[Short]

    Permalink

Value Members

  1. object BroadcastBuffer

    Permalink
  2. object BroadcastBufferAtLeastOnce

    Permalink
  3. object Lenient extends CommitOrderPolicy

    Permalink
  4. object PersistentBuffer

    Permalink
  5. object PersistentBufferAtLeastOnce

    Permalink
  6. object QueueConfig extends Serializable

    Permalink
  7. object QueueSerializer

    Permalink
  8. object Strict extends CommitOrderPolicy

    Permalink
  9. object UpstreamFailed extends Product with Serializable

    Permalink
  10. object UpstreamFinished extends Product with Serializable

    Permalink

Ungrouped