Interface Persister<T>
-
public interface Persister<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tdecode(ActiveMQBuffer buffer, T record, CoreMessageObjectPools pool)voidencode(ActiveMQBuffer buffer, T record)intgetEncodeSize(T record)bytegetID()This is to be used to store the protocol-id on Messages.
-
-
-
Method Detail
-
getID
byte getID()
This is to be used to store the protocol-id on Messages. Messages are stored on their bare format. The protocol manager will be responsible to code or decode messages. The caveat here is that the first short-sized bytes need to be this constant.
-
getEncodeSize
int getEncodeSize(T record)
-
encode
void encode(ActiveMQBuffer buffer, T record)
-
decode
T decode(ActiveMQBuffer buffer, T record, CoreMessageObjectPools pool)
-
-