SingletonSerializeAsToken - corda

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> | 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. `SingletonSerializeAsToken()`

### Functions

#### toToken | `open fun toToken(context: SerializeAsTokenContext): SingletonSerializationToken`

### Inheritors

#### InMemoryMessagingNetwork | 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). `class InMemoryMessagingNetwork : SingletonSerializeAsToken`
#### MockAttachmentStorage | A mock implementation of AttachmentStorage for use within tests `class MockAttachmentStorage : AttachmentStorage, SingletonSerializeAsToken`