Package org.apache.camel.resume
Interface OffsetKey<K>
-
- Type Parameters:
K
- the type of the offset key
- All Superinterfaces:
Serializable
public interface OffsetKey<K> extends 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description K
getValue()
Gets the key valuedefault ByteBuffer
serialize()
Serializes this offset into a buffer of bytesvoid
setValue(K key)
Sets the key value-
Methods inherited from interface org.apache.camel.resume.Serializable
serialize
-
-
-
-
Method Detail
-
setValue
void setValue(K key)
Sets the key value- Parameters:
key
- the key value
-
getValue
K getValue()
Gets the key value- Returns:
- the key instance
-
serialize
default ByteBuffer serialize()
Description copied from interface:Serializable
Serializes this offset into a buffer of bytes- Specified by:
serialize
in interfaceSerializable
- Returns:
- a ByteBuffer instance with the serialized contents of this object
-
-