tigase.cluster.strategy

## Class ConnectionRecord

- java.lang.Object
- - tigase.cluster.strategy.ConnectionRecord

- All Implemented Interfaces:
    Comparable<ConnectionRecord>

      public class ConnectionRecord
      extends Object
      implements Comparable<ConnectionRecord>

  Author:
    Artur Hefczyc Created Mar 15, 2011

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConnectionRecord(tigase.xml.Element elem)`
    `ConnectionRecord(tigase.xmpp.JID node, tigase.xmpp.JID userJid, String sessionId, tigase.xmpp.JID connectionId)`

  - ### Method Summary

    Methods
    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()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ConnectionRecord

          public ConnectionRecord(tigase.xmpp.JID node,
                          tigase.xmpp.JID userJid,
                          String sessionId,
                          tigase.xmpp.JID connectionId)

      Parameters:
        `node` -
        `user_jid` -
        `sessionId` -
        `connectionId` -

    - #### ConnectionRecord

          public ConnectionRecord(tigase.xml.Element elem)

  - ### Method Detail

    - #### toElement

          public tigase.xml.Element toElement()

    - #### getNode

          public tigase.xmpp.JID getNode()

      Returns:
        the node

    - #### getUserJid

          public tigase.xmpp.JID getUserJid()

      Returns:
        the user_jid

    - #### getSessionId

          public String getSessionId()

      Returns:
        the sessionId

    - #### getConnectionId

          public tigase.xmpp.JID getConnectionId()

      Returns:
        the connectionId

    - #### setLastPresence

          public void setLastPresence(tigase.xml.Element lastPresence)

      Parameters:
        `last_presence` - the last_presence to set

    - #### getLastPresence

          public tigase.xml.Element getLastPresence()

      Returns:
        the last_presence

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### compareTo

          public int compareTo(ConnectionRecord rec)

      Specified by:
        `compareTo` in interface `Comparable<ConnectionRecord>`

    - #### equals

          public boolean equals(Object rec)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2013 Tigase. All rights reserved.