trait DataConveyor extends AnyRef
Represents a message conveying application data.
Incoming conveyors
// val message: DataConveyor = ... // Default parsers val args: Future[List[Any]] = message.args val kwargs: Future[Map[String, Any]] = message.kwargs val user: Future[UserType] = message.kwargs[UserType] // Custom parsers val payload: Payload = message.payload payload match { case p: TextLazyPayload => val unparsed: Source[String, _] = p.unparsed // ... case p: BinaryLazyPayload => val unparsed: Source[ByteString, _] = p.unparsed // ... }
- Self Type
- DataConveyor with ProtocolMessage
- See also
- Alphabetic
- By Inheritance
- DataConveyor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
args: Future[List[Any]]
Is the conveyed data as list of indexed arguments
Is the conveyed data as list of indexed arguments
- returns
the (future of) indexed args
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
kwargs[T](implicit ctag: ClassTag[T]): Future[T]
Is the conveyed data as instance of the given user tpye
Is the conveyed data as instance of the given user tpye
- T
is the user type
- returns
the (future of) named args
-
def
kwargs: Future[Map[String, Any]]
Is the conveyed data as dictionary of named arguments
Is the conveyed data as dictionary of named arguments
- returns
the (future of) named args
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )