public final class EndpointManager extends Object
| Modifier and Type | Method and Description |
|---|---|
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 by multiple threads without side effects.
|
static void |
registerEndpoint(String endpoint,
RemoteConfigElement.ConnectorDescriptor descriptor)
Register an endpoint with the manager - the same endpoint can be registered
any number of times by multiple threads without side effects.
|
public static void registerEndpoint(String endpoint)
endpoint - The endpoint to registerpublic static void registerEndpoint(String endpoint, RemoteConfigElement.ConnectorDescriptor descriptor)
endpoint - The endpoint to registerdescriptor - The ConnectorDescriptor used to connect to this endpoint
Used to retrieve reconnection timeout config.public static boolean allowConnect(String endpoint)
endpoint - The endpoint to testpublic static boolean processResponseCode(String endpoint, int code)
endpoint - The endpoint to record code againstcode - Response codeCopyright © 2005–2017 Alfresco Software. All rights reserved.