Package org.apache.camel.resume
Interface Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface that represents resumable objects that can be serialized to a medium
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionSerializes this offset into a buffer of bytesdefault ByteBuffer
Serializes this offset into a buffer of bytes
-
Field Details
-
TYPE_INTEGER
static final int TYPE_INTEGER- See Also:
-
TYPE_LONG
static final int TYPE_LONG- See Also:
-
TYPE_STRING
static final int TYPE_STRING- See Also:
-
TYPE_FILE
static final int TYPE_FILE- See Also:
-
BYTES
static final int BYTES- See Also:
-
-
Method Details
-
serialize
Serializes this offset into a buffer of bytes- Parameters:
obj
- the object to serialize- Returns:
- a ByteBuffer instance with the serialized contents of this object
-
serialize
ByteBuffer serialize()Serializes this offset into a buffer of bytes- Returns:
- a ByteBuffer instance with the serialized contents of this object
-