abstract class AbstractActorPublisherWithUnrestrictedStash[T] extends AbstractActor with ActorPublisher[T] with UnrestrictedStash
Java API compatible with lambda expressions.
This class adds an unrestricted Stash to AbstractActorPublisher
.
- Annotations
- @deprecated
- Deprecated
(Since version 2.5.0) Use
akka.stream.stage.GraphStage
instead, it allows for all operations an Actor would and is more type-safe as well as guaranteed to be ReactiveStreams compliant.- Source
- ActorPublisher.scala
- See also
akka.stream.actor.ActorPublisher and akka.stream.actor.AbstractActorWithUnrestrictedStash
- Alphabetic
- By Inheritance
- AbstractActorPublisherWithUnrestrictedStash
- UnrestrictedStash
- StashSupport
- ActorPublisher
- AbstractActor
- Actor
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AbstractActorPublisherWithUnrestrictedStash()
- Deprecated
Use
akka.stream.stage.GraphStage
instead, it allows for all operations an Actor would and is more type-safe as well as guaranteed to be ReactiveStreams compliant.
Type Members
-
type
Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Abstract Value Members
-
abstract
def
createReceive(): actor.AbstractActor.Receive
- Definition Classes
- AbstractActor
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to any2stringadd[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (AbstractActorPublisherWithUnrestrictedStash[T], B)
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to ArrowAssoc[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
aroundPostRestart(reason: Throwable): Unit
INTERNAL API
INTERNAL API
- Attributes
- protected[akka]
- Definition Classes
- ActorPublisher → Actor
-
def
aroundPostStop(): Unit
INTERNAL API
INTERNAL API
- Attributes
- protected[akka]
- Definition Classes
- ActorPublisher → Actor
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
INTERNAL API
INTERNAL API
- Attributes
- protected[akka]
- Definition Classes
- ActorPublisher → Actor
-
def
aroundPreStart(): Unit
INTERNAL API
INTERNAL API
- Attributes
- protected[akka]
- Definition Classes
- ActorPublisher → Actor
-
def
aroundReceive(receive: Receive, msg: Any): Unit
INTERNAL API
INTERNAL API
- Attributes
- protected[akka]
- Definition Classes
- ActorPublisher → Actor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
implicit
val
context: ActorContext
- Definition Classes
- Actor
-
def
ensuring(cond: (AbstractActorPublisherWithUnrestrictedStash[T]) ⇒ Boolean, msg: ⇒ Any): AbstractActorPublisherWithUnrestrictedStash[T]
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to Ensuring[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (AbstractActorPublisherWithUnrestrictedStash[T]) ⇒ Boolean): AbstractActorPublisherWithUnrestrictedStash[T]
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to Ensuring[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): AbstractActorPublisherWithUnrestrictedStash[T]
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to Ensuring[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): AbstractActorPublisherWithUnrestrictedStash[T]
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to Ensuring[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to StringFormat[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getContext(): ActorContext
- Definition Classes
- AbstractActor
-
def
getSelf(): ActorRef
- Definition Classes
- AbstractActor
-
def
getSender(): ActorRef
- Definition Classes
- AbstractActor
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isActive: Boolean
The state when the publisher is active, i.e.
The state when the publisher is active, i.e. before the subscriber is attached and when an subscriber is attached. It is allowed to call #onComplete and #onError in this state. It is allowed to call #onNext in this state when #totalDemand is greater than zero.
- Definition Classes
- ActorPublisher
-
final
def
isCanceled: Boolean
The state after the stream subscriber has canceled the subscription.
The state after the stream subscriber has canceled the subscription. It is allowed to call #onNext, #onError, and #onComplete in this state, but the calls will not perform anything.
- Definition Classes
- ActorPublisher
-
final
def
isCompleted: Boolean
The terminal state after calling #onComplete.
The terminal state after calling #onComplete. It is not allowed to call #onNext, #onError, and #onComplete in this state.
- Definition Classes
- ActorPublisher
-
final
def
isErrorEmitted: Boolean
The terminal state after calling #onError.
The terminal state after calling #onError. It is not allowed to call #onNext, #onError, and #onComplete in this state.
- Definition Classes
- ActorPublisher
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
onComplete(): Unit
Complete the stream.
Complete the stream. After that you are not allowed to call #onNext, #onError and #onComplete.
- Definition Classes
- ActorPublisher
-
def
onCompleteThenStop(): Unit
Complete the stream.
Complete the stream. After that you are not allowed to call #onNext, #onError and #onComplete.
After signaling completion the Actor will then stop itself as it has completed the protocol. When #onComplete is called before any Subscriber has had the chance to subscribe to this ActorPublisher the completion signal (and therefore stopping of the Actor as well) will be delayed until such Subscriber arrives.
- Definition Classes
- ActorPublisher
-
def
onError(cause: Throwable): Unit
Terminate the stream with failure.
Terminate the stream with failure. After that you are not allowed to call #onNext, #onError and #onComplete.
- Definition Classes
- ActorPublisher
-
def
onErrorThenStop(cause: Throwable): Unit
Terminate the stream with failure.
Terminate the stream with failure. After that you are not allowed to call #onNext, #onError and #onComplete.
After signaling the Error the Actor will then stop itself as it has completed the protocol. When #onError is called before any Subscriber has had the chance to subscribe to this ActorPublisher the error signal (and therefore stopping of the Actor as well) will be delayed until such Subscriber arrives.
- Definition Classes
- ActorPublisher
-
def
onNext(element: T): Unit
Send an element to the stream subscriber.
Send an element to the stream subscriber. You are allowed to send as many elements as have been requested by the stream subscriber. This amount can be inquired with #totalDemand. It is only allowed to use
onNext
whenisActive
andtotalDemand > 0
, otherwiseonNext
will throwIllegalStateException
.- Definition Classes
- ActorPublisher
-
def
postRestart(reason: Throwable): Unit
- Definition Classes
- AbstractActor → Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
postStop(): Unit
- Definition Classes
- UnrestrictedStash → Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- UnrestrictedStash → Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preRestart(reason: Throwable, message: Optional[Any]): Unit
- Definition Classes
- AbstractActor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
preStart(): Unit
- Definition Classes
- AbstractActor → Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
receive: PartialFunction[Any, Unit]
- Definition Classes
- AbstractActor → Actor
-
final
def
receiveBuilder(): ReceiveBuilder
- Definition Classes
- AbstractActor
-
implicit final
val
self: ActorRef
- Definition Classes
- Actor
-
final
def
sender(): ActorRef
- Definition Classes
- Actor
-
def
stash(): Unit
- Definition Classes
- StashSupport
-
def
subscriptionTimeout: Duration
Subscription timeout after which this actor will become Canceled and reject any incoming "late" subscriber.
Subscription timeout after which this actor will become Canceled and reject any incoming "late" subscriber.
The actor will receive an SubscriptionTimeoutExceeded message upon which it MUST react by performing all necessary cleanup and stopping itself.
Use this feature in order to avoid leaking actors when you suspect that this Publisher may never get subscribed to by some Subscriber.
- Definition Classes
- ActorPublisher
-
def
supervisorStrategy: SupervisorStrategy
- Definition Classes
- AbstractActor → Actor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
totalDemand: Long
Total number of requested elements from the stream subscriber.
Total number of requested elements from the stream subscriber. This actor automatically keeps tracks of this amount based on incoming request messages and outgoing
onNext
.- Definition Classes
- ActorPublisher
-
def
unhandled(message: Any): Unit
- Definition Classes
- Actor
-
def
unstashAll(): Unit
- Definition Classes
- StashSupport
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (AbstractActorPublisherWithUnrestrictedStash[T], B)
- Implicit
- This member is added by an implicit conversion from AbstractActorPublisherWithUnrestrictedStash[T] to ArrowAssoc[AbstractActorPublisherWithUnrestrictedStash[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc