@Test public void timeout() { SessionInfo tSessionInfo = new SessionInfo(1, SESSION_TIMEOUT_MS); assertFalse(tSessionInfo.timeout()); }
public synchronized boolean timeout() { return (System.currentTimeMillis() - mLastHeartbeatMs > mSessionTimeoutMs); }
SessionInfo { public synchronized boolean timeout() { return (System.currentTimeMillis() - mLastHeartbeatMs > mSessionTimeoutMs); } }
SessionInfo { public synchronized boolean timeout() { return (System.currentTimeMillis() - mLastHeartbeatMs > mSessionTimeoutMs); } SessionInfo(long sessionId, int sessionTimeoutMs); }
SessionInfo { public synchronized boolean timeout() { return (System.currentTimeMillis() - mLastHeartbeatMs > mSessionTimeoutMs); } SessionInfo(long sessionId, int sessionTimeoutMs); long getSessionId(); synchronized void heartbeat(); synchronized boolean timeout(); @Override synchronized String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
SessionInfo { public synchronized boolean timeout() { return (System.currentTimeMillis() - mLastHeartbeatMs > mSessionTimeoutMs); } SessionInfo(long sessionId, int sessionTimeoutMs); long getSessionId(); synchronized void heartbeat(); synchronized boolean timeout(); @Override synchronized String toString(); @Override boolean equals(Object o); @Override int hashCode();  }