Connection Manager 3.5.1 Javadoc

org.jivesoftware.multiplexer
Interface SocketStatistic


public interface SocketStatistic

Interface that keeps statistics of sockets. Currently the only supported statistic is the last time a socket received a stanza or a heartbeat.

Author:
Gaston Dombiak

Method Summary
 long getLastActive()
          Returns the last time a stanza was read or a heartbeat was received.
 

Method Detail

getLastActive

long getLastActive()
Returns the last time a stanza was read or a heartbeat was received. Hearbeats are represented as whitespaces received while a Document is not being parsed.

Returns:
the time in milliseconds when the last stanza or heartbeat was received.

Connection Manager 3.5.1 Javadoc

Copyright © 2003-2006 Jive Software.