Class GenericTokenEntry<T>

java.lang.Object
org.axonframework.eventhandling.tokenstore.AbstractTokenEntry<T>
org.axonframework.eventhandling.tokenstore.GenericTokenEntry<T>
Type Parameters:
T - The serialized data type of the token

public class GenericTokenEntry<T> extends AbstractTokenEntry<T>
Generic implementation of a token entry.
Author:
Rene de Waele
  • Constructor Details

    • GenericTokenEntry

      public GenericTokenEntry(TrackingToken token, Serializer serializer, Class<T> contentType, String processorName, int segment)
      Initializes a new token entry for given token, process and segment. The given serializer can be used to serialize the token before it is stored.
      Parameters:
      token - The tracking token to store
      serializer - The serializer to use when storing a serialized token
      contentType - The content type after serialization
      processorName - The name of the processor to which this token belongs
      segment - The segment of the processor to which this token belongs
    • GenericTokenEntry

      public GenericTokenEntry(T token, String tokenType, String timestamp, String owner, String processorName, int segment, Class<T> contentType)
      Initializes a token entry from existing data.
      Parameters:
      token - the serialized token
      tokenType - the serialized type of the token
      timestamp - the timestamp of the token
      owner - the owner of the token
      processorName - The name of the processor to which this token belongs
      segment - The segment of the processor to which this token belongs
      contentType - The content type after serialization
  • Method Details