SerializeAsToken
Keywords: net.corda.core.serialization.SerializeAsToken interface
Date: 2023-09-18

net.corda.core.serialization

## Interface SerializeAsToken

- All Known Implementing Classes:
    InMemoryMessagingNetwork, MockAttachmentStorage, SingletonSerializeAsToken

      public SerializeAsToken

  This interface should be implemented by classes that want to substitute a token representation of themselves if they are serialized because they have a lot of internal state that does not serialize (well).

  This models a similar pattern to the readReplace/writeReplace methods in Java serialization.

- - ### Constructor Detail

    - #### SerializeAsToken

          public SerializeAsToken()

  - ### Method Detail

    - #### toToken

          @NotNull
          SerializationToken toToken(@NotNull
                                              SerializeAsTokenContext context)