Package org.apache.camel.resume
Interface Deserializable
public interface Deserializable
-
Method Summary
Modifier and TypeMethodDescriptionbooleandeserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer) Deserializes resume data (invalid data may be ignored)default ObjectdeserializeKey(ByteBuffer keyBuffer) Deserializes the key datadefault ObjectdeserializeObject(ByteBuffer buffer) Deserializes an arbitrary resumable object within a byte bufferdefault ObjectdeserializeValue(ByteBuffer valueBuffer) Deserializes the value of resumable data
-
Method Details
-
deserializeObject
Deserializes an arbitrary resumable object within a byte buffer- Parameters:
buffer- the buffer containing the object- Returns:
- the deserialized object
-
deserializeKey
Deserializes the key data- Parameters:
keyBuffer- the buffer containing the key data- Returns:
- the deserialized object
-
deserializeValue
Deserializes the value of resumable data- Parameters:
valueBuffer- the buffer containing the value data- Returns:
- the deserialized object
-
deserialize
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
-