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

      public MessageEventListener getListener()
    • getClient

      public ZulipHttpClient getClient()
    • 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