Interface IPollingService


  • public interface IPollingService
    • Method Detail

      • hasEndpoint

        boolean hasEndpoint​(String p_strKey)
        Check if the service has a polling endpoint with the given key.
        Parameters:
        p_strKey - The key.
        Returns:
      • getEndpoint

        IPollingEndpoint getEndpoint​(String p_strKey)
        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

        void addEndpoint​(String p_strKey,
                         IPollingEndpoint p_endpoint)
        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

        IPollingEndpoint removeEndpoint​(String p_strKey)
        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.