Package de.uplanet.lucy.server.polling
Interface IPollingService
public interface IPollingService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndpoint(String p_strKey, IPollingEndpoint p_endpoint) Add a new polling endpoint.getEndpoint(String p_strKey) Get the endpoint with the given key.booleanhasEndpoint(String p_strKey) Check if the service has a polling endpoint with the given key.removeEndpoint(String p_strKey) Get the endpoint with the given key.
-
Method Details
-
hasEndpoint
Check if the service has a polling endpoint with the given key.- Parameters:
p_strKey- The key.- Returns:
- @return
trueif the service has an endpoint with the given key, orfalseotherwise.
-
getEndpoint
Get the endpoint with the given key.- Parameters:
p_strKey- The key.- Returns:
- The polling endpoint, or
nullif the service does not have an endpoint with the given key.
-
addEndpoint
Add a new polling endpoint.- Parameters:
p_strKey- The key.p_endpoint- The polling endpoint.- Throws:
IllegalStateException- If the service already contains an endpoint with the given key.
-
removeEndpoint
Get the endpoint with the given key.- Parameters:
p_strKey- The key.- Returns:
- The removed polling endpoint, or
nullif the service does not have an endpoint with the given key.
-