sealed trait Message[Payload] extends AnyRef
A message broker message.
This provides access to both the message payload, and the metadata.
- Source
- MessageMetadata.scala
- Alphabetic
- By Inheritance
- Message
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
+[Metadata](keyValue: (MetadataKey[Metadata], Metadata)): Message[Payload]
Add a metadata key and value to this message.
Add a metadata key and value to this message.
- keyValue
The key and value to add.
- returns
A copy of this message with the key and value added.
-
abstract
def
get[Metadata](key: MetadataKey[Metadata]): Option[Metadata]
Get the metadata for the given metadata key.
Get the metadata for the given metadata key.
- key
The key of the metadata.
- returns
The metadata, if found for that key.
-
abstract
def
payload: Payload
The payload of the message.
-
abstract
def
withPayload[P2](payload: P2): Message[P2]
Return a copy of this message with the given payload.
Return a copy of this message with the given payload.
- payload
The payload.
- returns
A copy of this message with the given payload.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (Message[Payload], B)
-
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: (Message[Payload]) ⇒ Boolean, msg: ⇒ Any): Message[Payload]
- def ensuring(cond: (Message[Payload]) ⇒ Boolean): Message[Payload]
- def ensuring(cond: Boolean, msg: ⇒ Any): Message[Payload]
- def ensuring(cond: Boolean): Message[Payload]
-
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
-
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
-
def
messageKeyAsString: String
Get the message key as a String.
Get the message key as a String.
If the key is not a String, it will be converted to a String using
toString
.If the underlying message broker doesn't support keys, the empty string will be returned.
- returns
A string representation of the message key.
-
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): (Message[Payload], B)
Shadowed Implicit Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from Message[Payload] to any2stringadd[Message[Payload]] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(message: any2stringadd[Message[Payload]]).+(other)
- Definition Classes
- any2stringadd