Package org.apache.camel.resume
Interface OffsetKey<K>
- Type Parameters:
K- the type of the offset key
- All Superinterfaces:
Serializable
An interface to represent offset keys (addressable for an offset)
-
Field Summary
Fields inherited from interface org.apache.camel.resume.Serializable
BYTES, TYPE_FILE, TYPE_INTEGER, TYPE_LONG, TYPE_STRING -
Method Summary
Methods inherited from interface org.apache.camel.resume.Serializable
serialize
-
Method Details
-
setValue
Sets the key value- Parameters:
key- the key value
-
getValue
K getValue()Gets the key value- Returns:
- the key instance
-
serialize
Description copied from interface:SerializableSerializes this offset into a buffer of bytes- Specified by:
serializein interfaceSerializable- Returns:
- a ByteBuffer instance with the serialized contents of this object
-