trait Subscriber[Payload] extends AnyRef
- Alphabetic
- By Inheritance
- Subscriber
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
atLeastOnce(flow: Flow[Payload, Done, _]): Future[Done]
Applies the passed
flow
to the messages processed by this subscriber.Applies the passed
flow
to the messages processed by this subscriber. Messages are delivered to the passedflow
at least once.If a failure occurs (e.g., an exception is thrown), the stream may be automatically restarted starting with the message that caused the failure.
Whether the stream is automatically restarted depends on the Lagom message broker implementation in use. If the Kafka Lagom message broker module is being used, then by default the stream is automatically restarted when a failure occurs.
The
flow
may pull more elements from upstream but it must emit exactly oneDone
message for each message that it receives. It must also emit them in the same order that the messages were received. This means that theflow
must not filter or collect a subset of the messages, instead it must split the messages into separate streams and map those that would have been dropped toDone
.- flow
The flow to apply to each received message.
- returns
A
Future
that will be completed if theflow
completes.
-
abstract
def
atMostOnceSource: Source[Payload, _]
Returns a stream of messages with at most once delivery semantic.
Returns a stream of messages with at most once delivery semantic.
If a failure occurs (e.g., an exception is thrown), the user is responsible of deciding how to recover from it (e.g., restarting the stream, aborting, ...).
-
abstract
def
withGroupId(groupId: String): Subscriber[Payload]
Returns a copy of this subscriber with the passed group id.
Returns a copy of this subscriber with the passed group id.
- groupId
The group id to assign to this subscriber.
- returns
A copy of this subscriber with the passed group id.
-
abstract
def
withMetadata: Subscriber[Message[Payload]]
Returns this subscriber, but message payloads are wrapped in Message instances to allow accessing any metadata associated with the message.
Returns this subscriber, but message payloads are wrapped in Message instances to allow accessing any metadata associated with the message.
- returns
A copy of this subscriber.
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 Subscriber[Payload] to any2stringadd[Subscriber[Payload]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (Subscriber[Payload], B)
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to ArrowAssoc[Subscriber[Payload]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
ensuring(cond: (Subscriber[Payload]) ⇒ Boolean, msg: ⇒ Any): Subscriber[Payload]
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to Ensuring[Subscriber[Payload]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (Subscriber[Payload]) ⇒ Boolean): Subscriber[Payload]
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to Ensuring[Subscriber[Payload]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Subscriber[Payload]
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to Ensuring[Subscriber[Payload]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): Subscriber[Payload]
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to Ensuring[Subscriber[Payload]] 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
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to StringFormat[Subscriber[Payload]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (Subscriber[Payload], B)
- Implicit
- This member is added by an implicit conversion from Subscriber[Payload] to ArrowAssoc[Subscriber[Payload]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc