java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog.plugins.pipelineprocessor.functions.messages.StreamCacheService
All Implemented Interfaces:
com.google.common.util.concurrent.Service

@Singleton public class StreamCacheService extends com.google.common.util.concurrent.AbstractIdleService
  • Constructor Details

    • StreamCacheService

      @Inject public StreamCacheService(com.google.common.eventbus.EventBus eventBus, StreamService streamService, @Named("daemonScheduler") ScheduledExecutorService executorService)
  • Method Details

    • startUp

      protected void startUp()
      Specified by:
      startUp in class com.google.common.util.concurrent.AbstractIdleService
    • shutDown

      protected void shutDown()
      Specified by:
      shutDown in class com.google.common.util.concurrent.AbstractIdleService
    • handleStreamUpdate

      public void handleStreamUpdate(StreamsChangedEvent event)
    • getByName

      public Collection<Stream> getByName(String name)
    • getById

      @Nullable public Stream getById(String id)
    • updateStreams

      public void updateStreams()