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.
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. |
open fun toToken(context: SerializeAsTokenContext): <ERROR CLASS> |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |
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). |
|
class MockAttachmentStorage : AttachmentStorage, SingletonSerializeAsToken
A mock implementation of AttachmentStorage for use within tests |