Interface SingletonSerializeAsToken

  • All Implemented Interfaces:

    
    public interface SingletonSerializeAsToken
    
                        

    This interface should be implemented by classes that want to substitute a singleton token representation of themselves upon checkpoint serialization. This may be because of an internal state that does not serialize well. This interface should only be used on singleton classes, meaning that only one should exist during runtime. In addition, this interface is strictly for checkpoint serialization. It is not compatible with AMQP serialization (or CordaSerializable) and will cause serialization errors in AMQP.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getTokenName() Gets the name of the singleton's token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getTokenName

        @NotNull() String getTokenName()

        Gets the name of the singleton's token. Provide an implementation of this method to manually specify the name of this singleton's token. The token's name will be set to the singleton's class name if the method is not overridden.