|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.EndpointManager
public final class EndpointManager
The EndpointManager is responsible for maintaining connection timeout and connection retry information for endpoints. It may be used by multiple Connector objects to ensure that shared endpoints are not repeatedly connected to or waited on.
Method Summary | |
---|---|
static boolean |
allowConnect(String endpoint)
Returns true if the connector should make a connection attempt to the specified endpoint, false if the endpoint is still in the "wait" period between retries. |
static boolean |
processResponseCode(String endpoint,
int code)
Process the given response code for an endpoint - recording if that remote connection is unavailable for a time. |
static void |
registerEndpoint(String endpoint)
Register an endpoint with the manager - the same endpoint can be registered any number of times with side effects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerEndpoint(String endpoint)
endpoint
- The endpoint to registerpublic static boolean allowConnect(String endpoint)
endpoint
- The endpoint to test
public static boolean processResponseCode(String endpoint, int code)
endpoint
- The endpoint to record code againstcode
- Response code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |