org.jcoderz.commons.connector.http
Interface HttpConnectionExtended

All Superinterfaces:
HttpConnection
All Known Implementing Classes:
HttpConnectionImpl

public interface HttpConnectionExtended
extends HttpConnection

Interface extension of the HttpConnection for retry handling. Implemented by the HttpConnectionImpl class and used by the HttpConnectionFactoryImpl as handle for a managed connection.


Method Summary
 int getRequiredDelayForRetries()
          Gets the amount of mili seconds to wait before retry.
 boolean isRetryRequired()
          Gets flag indicating that a retry is required.
 
Methods inherited from interface org.jcoderz.commons.connector.http.HttpConnection
close, sendAndReceive, setEventListener, setRequestResponseHeader
 

Method Detail

isRetryRequired

boolean isRetryRequired()
Gets flag indicating that a retry is required.

Returns:
boolean true if retry is required, false else

getRequiredDelayForRetries

int getRequiredDelayForRetries()
Gets the amount of mili seconds to wait before retry.

Returns:
int amount of mili seconds for delay


Copyright 2007 The jCoderZ Project.