public final class ItemSequenceInfo extends Object implements Serializable
Event sequence information.| Modifier and Type | Method and Description |
|---|---|
int |
getPosition()
Gets the position or ordering number for this event in the the sequence, starting from 0 up to
getSequenceSize() - 1
in case it's defined |
OptionalInt |
getSequenceSize()
Determines how many events are in the sequence
|
static ItemSequenceInfo |
of(int position) |
static ItemSequenceInfo |
of(int position,
int sequenceSize) |
String |
toString() |
public static final String NOT_SET
public static ItemSequenceInfo of(int position)
public static ItemSequenceInfo of(int position, int sequenceSize)
public int getPosition()
getSequenceSize() - 1
in case it's definedpublic OptionalInt getSequenceSize()
OptionalInt.empty() value if the size is not knownCopyright © 2024 MuleSoft, Inc.. All rights reserved.