Packages

p

akka.wamp

serialization

package serialization

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait BinaryLazyPayload extends Payload with LazyPayload[ByteString]

    Represents a lazy payload with binary content

  2. class DeserializeException extends Exception
  3. class EagerPayload extends Payload

    Represents a payload whose content whose content don't need to be parsed.

  4. class JsonSerialization extends Serialization

    This class is NOT THREAD SAFE!

  5. class JsonSerializationFlows extends SerializationFlows

    The JSON serialization flows

  6. class JsonTextLazyPayload extends Payload with TextLazyPayload

    This class is NOT THREAD SAFE!

  7. 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 _ => ()
    }
  8. class MsgPackSerializationFlows extends SerializationFlows
  9. class MsgpackSerialization extends Serialization
  10. 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

    LazyPayload

    EagerPayload

  11. trait Serialization extends AnyRef
  12. trait SerializationFlows extends AnyRef

    Defines Akka Stream flows meant to serialize/deserialize messages to/from textual(binary)/object representation

  13. trait TextLazyPayload extends Payload with LazyPayload[String]

    Represents a lazy payload with textual content

Value Members

  1. 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
    ))

Ungrouped