public class DeliveryManagerImpl extends java.lang.Object implements DeliveryManager
Constructor and Description |
---|
DeliveryManagerImpl() |
Modifier and Type | Method and Description |
---|---|
long |
addLocalMessageToDeliver(MessageID messageID,
Message message,
ToaHeader header) |
long |
addRemoteMessageToDeliver(MessageID messageID,
Message message,
long remoteSequenceNumber) |
void |
clear()
remove all the pending messages
|
void |
deliverSingleDestinationMessage(Message msg,
MessageID messageID)
delivers a message that has only as destination member this node
|
java.util.Set<org.jgroups.protocols.tom.DeliveryManagerImpl.MessageInfo> |
getMessageSet()
It is used for testing (see the messages in JMX)
|
java.util.List<Message> |
getNextMessagesToDeliver()
returns an ordered list with the messages to be deliver.
|
void |
markReadyToDeliver(MessageID messageID,
long finalSequenceNumber)
marks the message as ready to deliver and set the final sequence number (to be ordered)
|
void |
removeLeavers(java.util.Collection<Address> leavers) |
void |
updateSequenceNumber(long sequenceNumber) |
public long addLocalMessageToDeliver(MessageID messageID, Message message, ToaHeader header)
public long addRemoteMessageToDeliver(MessageID messageID, Message message, long remoteSequenceNumber)
public void updateSequenceNumber(long sequenceNumber)
public void markReadyToDeliver(MessageID messageID, long finalSequenceNumber)
messageID
- the message IDfinalSequenceNumber
- the final sequence numberpublic final void removeLeavers(java.util.Collection<Address> leavers)
public java.util.List<Message> getNextMessagesToDeliver() throws java.lang.InterruptedException
DeliveryManager
getNextMessagesToDeliver
in interface DeliveryManager
java.lang.InterruptedException
- if it is interruptedpublic void clear()
public void deliverSingleDestinationMessage(Message msg, MessageID messageID)
msg
- the messagepublic java.util.Set<org.jgroups.protocols.tom.DeliveryManagerImpl.MessageInfo> getMessageSet()
Copyright © 1998-2020 Red Hat. All Rights Reserved.