package serialization
- Alphabetic
- Public
- All
Type Members
-
trait
BinaryLazyPayload
extends Payload with LazyPayload[ByteString]
Represents a lazy payload with binary content
- class DeserializeException extends Exception
-
class
EagerPayload
extends Payload
Represents a payload whose content whose content don't need to be parsed.
-
class
JsonSerialization
extends Serialization
This class is NOT THREAD SAFE!
-
class
JsonSerializationFlows
extends SerializationFlows
The JSON serialization flows
-
class
JsonTextLazyPayload
extends Payload with TextLazyPayload
This class is NOT THREAD SAFE!
-
sealed
trait
LazyPayload
[+T] extends Payload
Represents a payload whose content has not been parsed yet.
Represents a payload whose content has not been parsed yet.
You can parse this payload contents as follows:
// val payload: Payload = ... payload match { case p: TextLazyPayload => val unparsed: Source[String, _] = p.unparsed // parse textual source ... case p: BinaryLazyPayload => val unparsed: Source[ByteString, _] = p.unparsed // parse binary source ... case _ => () }
- class MsgPackSerializationFlows extends SerializationFlows
- class MsgpackSerialization extends Serialization
-
abstract
class
Payload
extends AnyRef
Represents either an eager or lazy payload conveyed by a akka.wamp.messages.DataConveyor.
Represents either an eager or lazy payload conveyed by a akka.wamp.messages.DataConveyor.
EagerPayload instances can be created using its companion object.
LazyPayload instances will be created by Akka Wamp on incoming messages.
- See also
- trait Serialization extends AnyRef
-
trait
SerializationFlows
extends AnyRef
Defines Akka Stream flows meant to serialize/deserialize messages to/from textual(binary)/object representation
-
trait
TextLazyPayload
extends Payload with LazyPayload[String]
Represents a lazy payload with textual content
Value Members
-
object
Payload
Factory for EagerPayload instances.
Factory for EagerPayload instances.
// empty payload val empty = Payload() // conveying a list of indexed arguments val indexed = Payload(List("paolo", 99, true)) // conveying a dictionary of named arguments val named = Payload(Map( "name" -> "paolo", "age" -> 99, "male" -> true ))