Constructor and Description |
---|
MsgQueue() |
Modifier and Type | Method and Description |
---|---|
void |
add(UpdateMsg update)
Add an UpdateMsg to this MessageQueue.
|
int |
bytesCount()
Returns the number of bytes in this MsgQueue.
|
void |
clear()
Removes all UpdateMsg form this queue.
|
void |
consumeUpTo(UpdateMsg finalMsg)
Consumes all the messages in this queue up to and including the passed in
message.
|
boolean |
contains(UpdateMsg msg)
Returns true if this map contains an UpdateMsg
with the same CSN as the given UpdateMsg.
|
int |
count()
Returns the number of elements in this MsgQueue.
|
UpdateMsg |
first()
Return the first UpdateMsg in the MsgQueue.
|
boolean |
isEmpty()
Returns true if this MsgQueue contains no UpdateMsg.
|
UpdateMsg |
removeFirst()
Get and remove the first UpdateMsg in this MessageQueue.
|
String |
toString() |
public MsgQueue()
public UpdateMsg first()
public int count()
public int bytesCount()
public boolean isEmpty()
public void add(UpdateMsg update)
update
- The UpdateMsg to add to this MessageQueue.public UpdateMsg removeFirst()
public boolean contains(UpdateMsg msg)
msg
- UpdateMsg whose presence in this queue is to be tested.public void clear()
public void consumeUpTo(UpdateMsg finalMsg)
finalMsg
- the final message to reach when consuming messages from this queueCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.