Package org.apache.camel.resume
Interface Deserializable
-
public interface Deserializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
deserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer)
Deserializes resume data (invalid data may be ignored)default Object
deserializeKey(ByteBuffer keyBuffer)
Deserializes the key datadefault Object
deserializeObject(ByteBuffer buffer)
Deserializes an arbitrary resumable object within a byte bufferdefault Object
deserializeValue(ByteBuffer valueBuffer)
Deserializes the value of resumable data
-
-
-
Method Detail
-
deserializeObject
default Object deserializeObject(ByteBuffer buffer)
Deserializes an arbitrary resumable object within a byte buffer- Parameters:
buffer
- the buffer containing the object- Returns:
- the deserialized object
-
deserializeKey
default Object deserializeKey(ByteBuffer keyBuffer)
Deserializes the key data- Parameters:
keyBuffer
- the buffer containing the key data- Returns:
- the deserialized object
-
deserializeValue
default Object deserializeValue(ByteBuffer valueBuffer)
Deserializes the value of resumable data- Parameters:
valueBuffer
- the buffer containing the value data- Returns:
- the deserialized object
-
deserialize
boolean deserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer)
Deserializes resume data (invalid data may be ignored)- Parameters:
keyBuffer
- the buffer containing the key datavalueBuffer
- the buffer containing the value data- Returns:
- true if successfully deserialized or false otherwise
-
-