Package org.apache.camel.component.wal
Class EntryInfo
java.lang.Object
org.apache.camel.component.wal.EntryInfo
- Direct Known Subclasses:
EntryInfo.CachedEntryInfo
Contains information about a log entry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContains information about a log entry that is hot on the cache -
Method Summary
Modifier and TypeMethodDescriptionstatic EntryInfo.CachedEntryInfocreateForCached(long position, org.apache.camel.component.wal.TransactionLog.LayerInfo layerInfo) Creates a new entry info instance for entries cached at the given position and layerstatic EntryInfocreateForPersisted(long position) Creates a new entry info instance for entries persisted at the given positionlong
-
Method Details
-
getPosition
public long getPosition() -
createForPersisted
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 entrylayerInfo- the layer on the transaction cache- Returns:
- a new entry info
-