class AnyCodec extends MessageCodec[Any]
Codec for Any values. This only supports very basic types to enable packing/unpacking collections like Seq[Any], Map[Any, Any] at ease.
Another option to implement AnyCodec is packing pairs of (type, value), but we will not take this approach as this will require many bytes to fully encode type names.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AnyCodec
- MessageCodec
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new AnyCodec(codecFactory: MessageCodecFactory = ..., knownSurfaces: Seq[Surface] = Seq.empty)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
macro
def
debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
macro
def
error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
def
fromJson(json: Array[Byte]): Any
- Definition Classes
- MessageCodec
-
def
fromJson(json: String): Any
- Definition Classes
- MessageCodec
-
def
fromMap(m: Map[String, Any]): Any
- Definition Classes
- MessageCodec
-
def
fromMsgPack(msgpack: Array[Byte]): Any
- Definition Classes
- MessageCodec
-
def
fromString(s: String): Any
A shortcut for fromMsgPack(StringCodec.toMsgPack(s))
A shortcut for fromMsgPack(StringCodec.toMsgPack(s))
- Definition Classes
- MessageCodec
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
macro
def
info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
macro
def
logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
lazy val
logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
pack(p: Packer, v: Any): Unit
- Definition Classes
- AnyCodec → MessageCodec
-
def
pack(v: Any): MsgPack
Converting the object into MessagePack (= Array[Byte])
Converting the object into MessagePack (= Array[Byte])
- Definition Classes
- MessageCodec
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toJSONObject(v: Any): JSONObject
- Definition Classes
- MessageCodec
-
def
toJson(v: Any): String
- Definition Classes
- MessageCodec
-
def
toMsgPack(v: Any): Array[Byte]
- Definition Classes
- MessageCodec
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
macro
def
trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
def
unpack(u: Unpacker, v: MessageContext): Unit
- Definition Classes
- AnyCodec → MessageCodec
-
def
unpack(msgpack: MsgPack): Any
Converting the input MessagePack into an object.
Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException
- Definition Classes
- MessageCodec
-
def
unpackBytes(msgpack: Array[Byte], offset: Int, len: Int): Option[Any]
- Definition Classes
- MessageCodec
-
def
unpackBytes(msgpack: Array[Byte]): Option[Any]
- Definition Classes
- MessageCodec
-
def
unpackJson(json: String): Option[Any]
- Definition Classes
- MessageCodec
-
def
unpackMsgPack(msgpack: Array[Byte], offset: Int, len: Int): Option[Any]
- Definition Classes
- MessageCodec
-
def
unpackMsgPack(msgpack: Array[Byte]): Option[Any]
- Definition Classes
- MessageCodec
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
macro
def
warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated