tigase.cluster.strategy
public class ConnectionRecord extends Object implements Comparable<ConnectionRecord>
Constructor and Description |
---|
ConnectionRecord(tigase.xml.Element elem) |
ConnectionRecord(tigase.xmpp.JID node,
tigase.xmpp.JID userJid,
String sessionId,
tigase.xmpp.JID connectionId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConnectionRecord rec) |
boolean |
equals(Object rec) |
tigase.xmpp.JID |
getConnectionId() |
tigase.xml.Element |
getLastPresence() |
tigase.xmpp.JID |
getNode() |
String |
getSessionId() |
tigase.xmpp.JID |
getUserJid() |
int |
hashCode() |
void |
setLastPresence(tigase.xml.Element lastPresence) |
tigase.xml.Element |
toElement() |
String |
toString() |
public ConnectionRecord(tigase.xmpp.JID node, tigase.xmpp.JID userJid, String sessionId, tigase.xmpp.JID connectionId)
node
- user_jid
- sessionId
- connectionId
- public ConnectionRecord(tigase.xml.Element elem)
public tigase.xml.Element toElement()
public tigase.xmpp.JID getNode()
public tigase.xmpp.JID getUserJid()
public String getSessionId()
public tigase.xmpp.JID getConnectionId()
public void setLastPresence(tigase.xml.Element lastPresence)
last_presence
- the last_presence to setpublic tigase.xml.Element getLastPresence()
public int compareTo(ConnectionRecord rec)
compareTo
in interface Comparable<ConnectionRecord>
Copyright © 2013 Tigase. All rights reserved.