Package org.apache.camel.resume
Interface Offset<T>
- Type Parameters:
T- the type of the offset
- All Superinterfaces:
Serializable
Generic offset without a concrete type
-
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
-
update
Sets the current offset value- Parameters:
offset- the current offset value
-
getValue
T getValue()Gets the offset value- Returns:
- the offset value
-
getValue
Gets the offset value converting it to the given type- Parameters:
tClass- type to convert the value to- Returns:
- the offset value or null if it cannot be converted
-
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
-