Package org.jivesoftware.openfire.spi
Class ClientRoute
java.lang.Object
org.jivesoftware.openfire.spi.ClientRoute
- All Implemented Interfaces:
Externalizable,Serializable,Cacheable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the approximate size of the Object in bytes.booleanvoidvoidtoString()void
-
Constructor Details
-
ClientRoute
public ClientRoute() -
ClientRoute
-
-
Method Details
-
getNodeID
-
setNodeID
-
isAvailable
public boolean isAvailable() -
getCachedSize
public int getCachedSize()Description copied from interface:CacheableReturns 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:
getCachedSizein interfaceCacheable- Returns:
- the size of the Object in bytes.
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-