Package org.apache.camel.support.resume
Class OffsetKeys
- java.lang.Object
-
- org.apache.camel.support.resume.OffsetKeys
-
public final class OffsetKeys extends Object
Utility class for handling offset keys
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
-
-