corda / net.corda.core.serialization / SingletonSerializeAsToken

SingletonSerializeAsToken

abstract class SingletonSerializeAsToken : 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.

Constructors

<init>

SingletonSerializeAsToken()

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.

Functions

toToken

open fun toToken(context: SerializeAsTokenContext): SingletonSerializationToken

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.

Inheritors

InMemoryMessagingNetwork

class InMemoryMessagingNetwork : SingletonSerializeAsToken

An in-memory network allows you to manufacture MockNodeMessagingServices for a set of participants. Each MockNodeMessagingService maintains a queue of messages it has received, and a background thread that dispatches messages one by one to registered handlers. Alternatively, a messaging system may be manually pumped, in which case no thread is created and a caller is expected to force delivery one at a time (this is useful for unit testing).

MockAttachmentStorage

class MockAttachmentStorage : AttachmentStorage, SingletonSerializeAsToken

A mock implementation of AttachmentStorage for use within tests