Package org.apache.camel.support.resume
Class OffsetKeys
java.lang.Object
org.apache.camel.support.resume.OffsetKeys
Utility class for handling offset keys
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.camel.resume.OffsetKey<?>
empty()
Creates new empty OffsetKey objectstatic <T> org.apache.camel.resume.OffsetKey<T>
of
(T object) Creates a new offset key wrapping the given objectstatic <T> org.apache.camel.resume.OffsetKey<T>
unmodifiableOf
(T object) Creates a new unmodifiable offset key wrapping the given object
-
Method Details
-
of
public static <T> org.apache.camel.resume.OffsetKey<T> of(T object) Creates a new offset key wrapping the given object- Type Parameters:
T
- the type of the object being wrapped- Parameters:
object
- the object to wrap in the offset key- Returns:
- a new OffsetKey object that wraps the given object
-
unmodifiableOf
public static <T> org.apache.camel.resume.OffsetKey<T> unmodifiableOf(T object) Creates a new unmodifiable offset key wrapping the given object- Type Parameters:
T
- the type of the object being wrapped- Parameters:
object
- the object to wrap in the offset key- Returns:
- a new OffsetKey object that wraps the given object. The offset key of this object cannot be updated.
-
empty
public static org.apache.camel.resume.OffsetKey<?> empty()Creates new empty OffsetKey object- Returns:
- an empty OffsetKey object
-