Interface Persister<T>
- All Known Implementing Classes:
AbstractHashMapPersister,AckRetry.Persister,CoreMessagePersister,EncoderPersister,LargeMessagePersister,MessagePersister
public interface Persister<T>
-
Method Summary
Modifier and TypeMethodDescriptiondecode(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 Details
-
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
-
encode
-
decode
-