Package org.apache.pekko.stream
Class StreamRefAttributes
java.lang.Object
org.apache.pekko.stream.StreamRefAttributes
Attributes for stream refs (
pekko.stream.SourceRef and pekko.stream.SinkRef).
Note that more attributes defined in Attributes and ActorAttributes.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic classstatic final classstatic classstatic interfaceAttributes specific to stream refs.static final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributesbufferCapacity(int capacity) Specifies the size of the buffer on the receiving side that is eagerly filled even without demand.static AttributesdemandRedeliveryInterval(Duration timeout) Java API: If no new elements arrive within this timeout, demand is redelivered.static AttributesdemandRedeliveryInterval(scala.concurrent.duration.FiniteDuration timeout) Scala API: If no new elements arrive within this timeout, demand is redelivered.static AttributesfinalTerminationSignalDeadline(Duration timeout) Java API: The time between the Terminated signal being received and when the local SourceRef determines to fail itselfstatic AttributesfinalTerminationSignalDeadline(scala.concurrent.duration.FiniteDuration timeout) Scala API: The time between the Terminated signal being received and when the local SourceRef determines to fail itselfstatic AttributessubscriptionTimeout(Duration timeout) Java API: Specifies the subscription timeout within which the remote side MUST subscribe to the handed out stream reference.static AttributessubscriptionTimeout(scala.concurrent.duration.FiniteDuration timeout) Scala API: Specifies the subscription timeout within which the remote side MUST subscribe to the handed out stream reference.
-
Constructor Details
-
StreamRefAttributes
public StreamRefAttributes()
-
-
Method Details
-
subscriptionTimeout
Scala API: Specifies the subscription timeout within which the remote side MUST subscribe to the handed out stream reference. -
subscriptionTimeout
Java API: Specifies the subscription timeout within which the remote side MUST subscribe to the handed out stream reference. -
bufferCapacity
Specifies the size of the buffer on the receiving side that is eagerly filled even without demand. -
demandRedeliveryInterval
Scala API: If no new elements arrive within this timeout, demand is redelivered. -
demandRedeliveryInterval
Java API: If no new elements arrive within this timeout, demand is redelivered. -
finalTerminationSignalDeadline
public static Attributes finalTerminationSignalDeadline(scala.concurrent.duration.FiniteDuration timeout) Scala API: The time between the Terminated signal being received and when the local SourceRef determines to fail itself -
finalTerminationSignalDeadline
Java API: The time between the Terminated signal being received and when the local SourceRef determines to fail itself
-