org.jivesoftware.openfire.spi
Class ClientRoute
java.lang.Object
org.jivesoftware.openfire.spi.ClientRoute
- All Implemented Interfaces:
- Externalizable, Serializable, Cacheable
public class ClientRoute
- extends Object
- implements Cacheable, Externalizable
Internal object used by RoutingTableImpl to keep track of the node that own a ClientSession
and whether the session is available or not.
- Author:
- Gaston Dombiak
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientRoute
public ClientRoute()
ClientRoute
public ClientRoute(NodeID nodeID,
boolean available)
getNodeID
public NodeID getNodeID()
isAvailable
public boolean isAvailable()
getCachedSize
public int getCachedSize()
- Description copied from interface:
Cacheable
- Returns the approximate size of the Object in bytes. The size should be
considered to be a best estimate of how much memory the Object occupies
and may be based on empirical trials or dynamic calculations.
- Specified by:
getCachedSize
in interface Cacheable
- Returns:
- the size of the Object in bytes.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2003-2008 Jive Software.