Class

org.squbs.stream

AbstractPerpetualStream

Related Doc: package stream

Permalink

abstract class AbstractPerpetualStream[T] extends AbstractActor with PerpetualStreamBase[T]

Java API for perpetual stream that starts and stops with the server.

T

The type of the materialized value of the stream.

Linear Supertypes
PerpetualStreamBase[T], GracefulStopHelper, GracefulStopSupport, Stash, RequiresMessageQueue[DequeBasedMessageQueueSemantics], UnrestrictedStash, StashSupport, ActorLogging, AbstractActor, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractPerpetualStream
  2. PerpetualStreamBase
  3. GracefulStopHelper
  4. GracefulStopSupport
  5. Stash
  6. RequiresMessageQueue
  7. UnrestrictedStash
  8. StashSupport
  9. ActorLogging
  10. AbstractActor
  11. Actor
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractPerpetualStream()

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Abstract Value Members

  1. abstract def streamGraph: RunnableGraph[T]

    Permalink

    Describe your graph by implementing streamGraph

    Describe your graph by implementing streamGraph

    returns

    The graph.

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  5. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  6. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  7. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  12. def createReceive(): akka.actor.AbstractActor.Receive

    Permalink
    Definition Classes
    AbstractPerpetualStream → AbstractActor
  13. def decider: Function[Throwable, Directive]

    Permalink

    The decider to use.

    The decider to use. Override if not resumingDecider.

  14. final def defaultLeafActorStop: Unit

    Permalink

    Default gracefully stop behavior for leaf level actors (Actors only receive the msg as input and send out a result) towards the GracefulStop message

    Default gracefully stop behavior for leaf level actors (Actors only receive the msg as input and send out a result) towards the GracefulStop message

    Simply stop itself

    Attributes
    protected
    Definition Classes
    GracefulStopHelper
  15. final def defaultMidActorStop(dependencies: List[ActorRef]): Unit

    Permalink

    Java API stopping non-leaf actors with default timeout.

    Java API stopping non-leaf actors with default timeout.

    dependencies

    All non-leaf actors to be stopped.

    Attributes
    protected
    Definition Classes
    GracefulStopHelper
  16. final def defaultMidActorStop(dependencies: List[ActorRef], timeout: Duration): Unit

    Permalink

    Java API stopping non-leaf actors.

    Java API stopping non-leaf actors.

    dependencies

    All non-leaf actors to be stopped.

    timeout

    The timeout.

    Attributes
    protected
    Definition Classes
    GracefulStopHelper
  17. final def defaultMidActorStop(dependencies: Iterable[ActorRef], timeout: FiniteDuration = stopTimeout / 2): Unit

    Permalink

    Default gracefully stop behavior for middle level actors (Actors rely on the results of other actors to finish their tasks) towards the GracefulStop message

    Default gracefully stop behavior for middle level actors (Actors rely on the results of other actors to finish their tasks) towards the GracefulStop message

    Simply propagate the GracefulStop message to all actors that should be stop ahead of this actor

    If some actors failed to respond to the GracefulStop message, It will send PoisonPill again

    After all the actors get terminated it stops itself

    Attributes
    protected
    Definition Classes
    GracefulStopHelper
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def flowMatValue: Receive

    Permalink
    Definition Classes
    PerpetualStreamBase
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getContext(): ActorContext

    Permalink
    Definition Classes
    AbstractActor
  24. def getSelf(): ActorRef

    Permalink
    Definition Classes
    AbstractActor
  25. def getSender(): ActorRef

    Permalink
    Definition Classes
    AbstractActor
  26. def getStopTimeout: Long

    Permalink

    Override getStopTimeout to set a custom stop timeout.

    Override getStopTimeout to set a custom stop timeout.

    returns

    The timeout, in milliseconds to allow for stopping the server.

  27. final def gracefulStop(target: ActorRef, timeout: Duration): CompletionStage[Boolean]

    Permalink

    Java API for gracefulStop using the default message - PoisonPill.

    Java API for gracefulStop using the default message - PoisonPill.

    target

    The target actor to stop.

    timeout

    The timeout.

    returns

    A CompletionStage carrying true for success stopping the target.

    Attributes
    protected
    Definition Classes
    GracefulStopHelper
  28. def gracefulStop(target: ActorRef, timeout: Duration, stopMessage: Any): CompletionStage[Boolean]

    Permalink

    Java API for gracefulStop.

    Java API for gracefulStop.

    target

    The target actor to stop.

    timeout

    The timeout.

    stopMessage

    The message to send to the actor for stopping.

    returns

    A CompletionStage carrying true for success stopping the target.

    Attributes
    protected
    Definition Classes
    GracefulStopHelper
  29. def gracefulStop(target: ActorRef, timeout: FiniteDuration, stopMessage: Any): Future[Boolean]

    Permalink
    Definition Classes
    GracefulStopSupport
  30. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  32. lazy val killSwitch: SharedKillSwitch

    Permalink

    The kill switch to integrate into the stream.

    The kill switch to integrate into the stream. Override this if you want a different switch or one that is shared between perpetual streams.

    returns

    The kill switch.

    Definition Classes
    PerpetualStreamBase
  33. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  34. final def matValue: T

    Permalink
    Definition Classes
    PerpetualStreamBase
  35. implicit val materializer: ActorMaterializer

    Permalink
  36. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  39. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    AbstractActor → Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  40. def postStop(): Unit

    Permalink
    Definition Classes
    UnrestrictedStash → Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  41. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    UnrestrictedStash → Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  42. def preRestart(reason: Throwable, message: Optional[Any]): Unit

    Permalink
    Definition Classes
    AbstractActor
    Annotations
    @throws( classOf[java.lang.Exception] )
  43. def preStart(): Unit

    Permalink
    Definition Classes
    AbstractActor → Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  44. def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    AbstractActor → Actor
  45. final def receiveBuilder(): ReceiveBuilder

    Permalink
    Definition Classes
    AbstractActor
  46. final def running: Receive

    Permalink
    Definition Classes
    PerpetualStreamBase
  47. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  48. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  49. def shutdown(): CompletionStage[Done]

    Permalink

    Override shutdown to define your own shutdown process or wait for the sink to finish.

    Override shutdown to define your own shutdown process or wait for the sink to finish. The default shutdown makes the following assumptions:

    • The stream materializes to a CompletionStage, or a Pair or List for which the last element is a CompletionStage
    • This CompletionStage represents the state whether the stream is done
    • The stream has the killSwitch as the first processing stage In which case you do not need to override this default shutdown if there are no further shutdown requirements. In case you override shutdown, it is recommended that super.shutdown() be called on overrides even if the stream only partially meets the requirements above.
    returns

    A CompletionStage[Done] that gets completed when the whole stream is done.

  50. final def starting: Receive

    Permalink
    Definition Classes
    PerpetualStreamBase
  51. def stash(): Unit

    Permalink
    Definition Classes
    StashSupport
  52. final def stopTimeout: FiniteDuration

    Permalink

    Duration that the actor needs to finish the graceful stop.

    Duration that the actor needs to finish the graceful stop. Override it for customized timeout and it will be registered to the reaper Default to 5 seconds

    returns

    Duration

    Definition Classes
    AbstractPerpetualStreamGracefulStopHelper
  53. final def stopped(children: Iterable[ActorRef]): Receive

    Permalink
    Definition Classes
    PerpetualStreamBase
  54. lazy val streamRunLifecycleState: LifecycleState

    Permalink

    By default the stream is run when system state is Active.

    By default the stream is run when system state is Active. Override this if you want it to run in a different lifecycle phase.

    Definition Classes
    PerpetualStreamBase
  55. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    AbstractActor → Actor
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  57. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  58. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  59. def unstashAll(): Unit

    Permalink
    Definition Classes
    StashSupport
  60. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PerpetualStreamBase[T]

Inherited from GracefulStopHelper

Inherited from GracefulStopSupport

Inherited from Stash

Inherited from RequiresMessageQueue[DequeBasedMessageQueueSemantics]

Inherited from UnrestrictedStash

Inherited from StashSupport

Inherited from ActorLogging

Inherited from AbstractActor

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped