Interface MessageBuffer
- All Known Implementing Classes:
OrderBasedMessageBuffer,SizeBasedMessageBuffer
public interface MessageBuffer
Represents a collection of MessageQueue instances which are all bound by the
same memory buffer to fix the amount of RAM used to some uppper bound.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Creates a new message queue instanceintgetSize()voidonSizeChanged(MessageQueue queue, int delta, int queueSize) After a message queue has changed we may need to perform some evictions
-
Method Details
-
getSize
int getSize() -
createMessageQueue
MessageQueue createMessageQueue()Creates a new message queue instance -
onSizeChanged
After a message queue has changed we may need to perform some evictions- Parameters:
delta-queueSize-
-
clear
void clear()
-