Class DirectedPresence
java.lang.Object
org.jivesoftware.openfire.handler.DirectedPresence
- All Implemented Interfaces:
Externalizable,Serializable
Represents a directed presence sent from a session hosted in a cluster node
to another entity (e.g. user or MUC service) hosted in some other cluster
node.
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.
- Author:
- Gaston Dombiak
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReceiver(String receiver) org.xmpp.packet.JIDbyte[]booleanisEmpty()voidvoidremoveReceiver(String receiver) void
-
Constructor Details
-
DirectedPresence
public DirectedPresence() -
DirectedPresence
public DirectedPresence(org.xmpp.packet.JID handlerJID)
-
-
Method Details
-
getNodeID
public byte[] getNodeID() -
getHandler
public org.xmpp.packet.JID getHandler() -
getReceivers
-
addReceiver
-
removeReceiver
-
isEmpty
public boolean isEmpty() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-