public class DirectedPresence extends Object implements Externalizable
This information needs to be shared by all cluster nodes so that if a cluster node goes down then directed presences can be correctly cleaned up.
Note that an instance of this class will be created and kept in the clustered cache only when entities hosted by different cluster nodes are involved.
Constructor and Description |
---|
DirectedPresence() |
DirectedPresence(org.xmpp.packet.JID handlerJID) |
Modifier and Type | Method and Description |
---|---|
void |
addReceiver(String receiver) |
org.xmpp.packet.JID |
getHandler() |
byte[] |
getNodeID() |
Set<String> |
getReceivers() |
boolean |
isEmpty() |
void |
readExternal(ObjectInput in) |
void |
removeReceiver(String receiver) |
void |
writeExternal(ObjectOutput out) |
public DirectedPresence()
public DirectedPresence(org.xmpp.packet.JID handlerJID)
public byte[] getNodeID()
public org.xmpp.packet.JID getHandler()
public void addReceiver(String receiver)
public void removeReceiver(String receiver)
public boolean isEmpty()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2003-2008 Jive Software.