Class EntryInfo

java.lang.Object
org.apache.camel.component.wal.EntryInfo
Direct Known Subclasses:
EntryInfo.CachedEntryInfo

public class EntryInfo extends Object
Contains information about a log entry
  • Method Details

    • getPosition

      public long getPosition()
    • createForPersisted

      public static EntryInfo createForPersisted(long position)
      Creates a new entry info instance for entries persisted at the given position
      Parameters:
      position - the position of the entry
      Returns:
      a new entry info
    • createForCached

      public static EntryInfo.CachedEntryInfo createForCached(long position, org.apache.camel.component.wal.TransactionLog.LayerInfo layerInfo)
      Creates a new entry info instance for entries cached at the given position and layer
      Parameters:
      position - the position of the entry
      layerInfo - the layer on the transaction cache
      Returns:
      a new entry info