net.zortrium.p2proto
Class PeerTimeoutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.zortrium.p2proto.PeerException
                  extended by net.zortrium.p2proto.PeerTimeoutException
All Implemented Interfaces:
Serializable

public class PeerTimeoutException
extends PeerException

Exception indicating that a response message was not received in under the specified time limit. This may be due several reasons; e.g., a host that unexpectedly chooses not to send a response, or a host that is taking too long to respond.

Author:
Sean Barker - www.zortrium.net
See Also:
Serialized Form

Method Summary
 long getTimeout()
          Get the time (in ms) that the connection waited for a response before timing out.
 String toString()
           
 
Methods inherited from class net.zortrium.p2proto.PeerException
getPeer, getRequest
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTimeout

public long getTimeout()
Get the time (in ms) that the connection waited for a response before timing out.

Returns:
The ms time delay.

toString

public String toString()
Overrides:
toString in class PeerException