Package de.uplanet.lucy.server.polling
Interface IPollingService
public interface IPollingService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEndpoint
(String p_strKey, IPollingEndpoint p_endpoint) Add a new polling endpoint.getEndpoint
(String p_strKey) Get the endpoint with the given key.boolean
hasEndpoint
(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
true
if the service has an endpoint with the given key, orfalse
otherwise.
-
getEndpoint
Get the endpoint with the given key.- Parameters:
p_strKey
- The key.- Returns:
- The polling endpoint, or
null
if 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
null
if the service does not have an endpoint with the given key.
-