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.
@FunctionalInterface public interface Serializable
An interface that represents resumable objects that can be serialized to a medium
-
-
Field Summary
Fields Modifier and Type Field Description static int
BYTES
static int
TYPE_FILE
static int
TYPE_INTEGER
static int
TYPE_LONG
static int
TYPE_STRING
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ByteBuffer
serialize()
Serializes this offset into a buffer of bytesdefault ByteBuffer
serialize(Object obj)
Serializes this offset into a buffer of bytes
-
-
-
Field Detail
-
TYPE_INTEGER
static final int TYPE_INTEGER
- See Also:
- Constant Field Values
-
TYPE_LONG
static final int TYPE_LONG
- See Also:
- Constant Field Values
-
TYPE_STRING
static final int TYPE_STRING
- See Also:
- Constant Field Values
-
TYPE_FILE
static final int TYPE_FILE
- See Also:
- Constant Field Values
-
BYTES
static final int BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
default ByteBuffer serialize(Object obj)
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
-
-