Class OffsetKeys


  • public final class OffsetKeys
    extends Object
    Utility class for handling offset keys
    • 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