LazyCodec
wvlet.airframe.codec.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])).
Attributes
- Graph
-
- Supertypes
-
trait Producttrait Equalstrait MessageCodec[A]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
A shortcut for fromMsgPack(StringCodec.toMsgPack(s))
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Converting the object into MessagePack (= Array[Byte])
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
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
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
In this article