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

    Modifier and Type
    Method
    Description
    static org.apache.camel.resume.OffsetKey<?>
    Creates new empty OffsetKey object
    static <T> org.apache.camel.resume.OffsetKey<T>
    of(T object)
    Creates a new offset key wrapping the given object
    static <T> org.apache.camel.resume.OffsetKey<T>
    unmodifiableOf(T object)
    Creates a new unmodifiable offset key wrapping the given object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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