com.r3corda.core.serialization / SerializeAsStringToken

SerializeAsStringToken

abstract class SerializeAsStringToken : SerializeAsToken

A base class for implementing large objects / components / services that need to serialize themselves to a string token to indicate which instance the token is a serialized form of.

This class will also double check that the class is annotated for Kryo serialization. Note it does this on every instance constructed but given this is designed to represent heavyweight services or components, this should not be significant.





Constructors

<init> SerializeAsStringToken(key: String)

A base class for implementing large objects / components / services that need to serialize themselves to a string token to indicate which instance the token is a serialized form of.

Properties

key val key: String
token open val token: SerializationToken