Class EventPollerConfiguration

java.lang.Object
com.github.jamesnetherton.zulip.client.api.event.EventPollerConfiguration

public class EventPollerConfiguration extends Object
Configuration items for the EventPoller.
  • Method Details

    • getListener

    • getClient

      public ZulipHttpClient getClient()
    • getListeners

      public Map<String, List<EventListener<Event>>> getListeners()
      Gets the event listeners keyed by the Zulip event type name.
      Returns:
      Unmodifiable map of event type names to event listeners
    • getNarrows

      public Narrow[] getNarrows()
    • setNarrows

      public void setNarrows(Narrow[] narrows)
      Sets the Narrow expressions to filter which message events are captured.
      Parameters:
      narrows - The narrow expression message filter
    • getEventListenerExecutorService

      public ExecutorService getEventListenerExecutorService()
    • setEventListenerExecutorService

      public void setEventListenerExecutorService(ExecutorService eventListenerExecutorService)
      Sets a custom executor to use for processing message events.
      Parameters:
      eventListenerExecutorService - Custom ExecutorService to use for message event listener execution
    • isAllPublicStreams

      public boolean isAllPublicStreams()
    • setAllPublicStreams

      public void setAllPublicStreams(boolean allPublicStreams)
      Sets whether to request message events from all public channels.
      Parameters:
      allPublicStreams - true to request message events from all public channels. false to not include message events from all public channels
    • getIdleQueueTimeout

      public Integer getIdleQueueTimeout()
    • setIdleQueueTimeout

      public void setIdleQueueTimeout(Integer idleQueueTimeout)
      Sets the minimum number of seconds that the server should keep the event queue alive when it is not being polled.
      Parameters:
      idleQueueTimeout - The idle queue timeout in seconds