Package tigase.cluster.strategy
Class ConnectionRecord
- java.lang.Object
-
- tigase.cluster.strategy.ConnectionRecord
-
- All Implemented Interfaces:
Comparable<ConnectionRecord>,ConnectionRecordIfc
public class ConnectionRecord extends Object implements ConnectionRecordIfc, Comparable<ConnectionRecord>
- Author:
- Artur Hefczyc Created Mar 15, 2011
-
-
Constructor Summary
Constructors Constructor Description ConnectionRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ConnectionRecord rec)booleanequals(Object rec)JIDgetConnectionId()JIDgetNode()StringgetSessionId()JIDgetUserJid()inthashCode()voidsetConnectionId(JID connectionId)voidsetElement(Element elem)voidsetRecordFields(JID node, JID userJid, String sessionId, JID connectionId)ElementtoElement()StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ConnectionRecord rec)
- Specified by:
compareToin interfaceComparable<ConnectionRecord>
-
toElement
public Element toElement()
- Specified by:
toElementin interfaceConnectionRecordIfc
-
getConnectionId
public JID getConnectionId()
- Specified by:
getConnectionIdin interfaceConnectionRecordIfc
-
setConnectionId
public void setConnectionId(JID connectionId)
-
getNode
public JID getNode()
- Specified by:
getNodein interfaceConnectionRecordIfc
-
getSessionId
public String getSessionId()
- Specified by:
getSessionIdin interfaceConnectionRecordIfc
-
getUserJid
public JID getUserJid()
- Specified by:
getUserJidin interfaceConnectionRecordIfc
-
setElement
public void setElement(Element elem)
- Specified by:
setElementin interfaceConnectionRecordIfc
-
setRecordFields
public void setRecordFields(JID node, JID userJid, String sessionId, JID connectionId)
- Specified by:
setRecordFieldsin interfaceConnectionRecordIfc
-
-