LazyCodec
case class LazyCodec[A](surface: Surface, codecFactory: MessageCodecFactory) extends MessageCodec[A]
For generating codec for recursive types.
For example, if type X has a recursion like X(name:String, child:Option[X]), LazyCodec will be used to generate a codec instance as MessageCodec[X](StringCodec, OptionCodec(LazyCodec[X])).
trait Product
trait Equals
trait MessageCodec[A]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
A shortcut for fromMsgPack(StringCodec.toMsgPack(s))
A shortcut for fromMsgPack(StringCodec.toMsgPack(s))
- Inherited from:
- MessageCodec
Converting the object into MessagePack (= Array[Byte])
Converting the object into MessagePack (= Array[Byte])
- Inherited from:
- MessageCodec
Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException
Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException
- Inherited from:
- MessageCodec