Package

org.squbs

stream

Permalink

package stream

Visibility
  1. Public
  2. All

Type Members

  1. case class LifecycleManaged[T, M]()(implicit system: ActorSystem) extends Product with Serializable

    Permalink
  2. trait PerpetualStream[T] extends Actor with ActorLogging with Stash with GracefulStopHelper

    Permalink

    Traits for perpetual streams that start and stop with the server.

    Traits for perpetual streams that start and stop with the server. The simplest conforming implementation follows these requirements:

    • The stream materializes to a Future or a Product (Tuple, List, etc.) for which the last element is a Future
    • This Future represents the state whether the stream is done
    • The stream has the killSwitch as the first processing stage right behind the source Non-conforming implementations need to implement one or more of the provided hooks while conforming implementations can well be supported by the default implementations.
    T

    The type of the materialized value of the stream.

  3. class Trigger[T, M1, M2] extends AnyRef

    Permalink
  4. final class TriggerEvent extends Enum[TriggerEvent]

    Permalink
  5. final class TriggerMerge[T] extends GraphStage[FanInShape2[T, TriggerEvent, T]]

    Permalink

    Merge two streams, taking elements as they arrive from an input stream, and a trigger stream to start/stop the flow (pulling from trigger stream first, wait until true, then pulling from the input stream).

    Merge two streams, taking elements as they arrive from an input stream, and a trigger stream to start/stop the flow (pulling from trigger stream first, wait until true, then pulling from the input stream). (keep pulling from trigger stream, wait until false, then stop pulling from the input stream). (Repeat over)

    A TriggerMerge has one out port, one in port and one trigger input port.

    Emits when the input stream has an element available, and the triggered is true Note that, trigger only impact the future input element(s), always allowing the in-flight element to go through

  6. final class UnicomplexActorPublisher extends ActorPublisher[LifecycleState]

    Permalink

Ungrouped