Class LookupDataAdapterRefreshService

java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog2.lookup.LookupDataAdapterRefreshService
All Implemented Interfaces:
com.google.common.util.concurrent.Service

public class LookupDataAdapterRefreshService extends com.google.common.util.concurrent.AbstractIdleService
This is responsible for scheduling LookupDataAdapter refreshes.

Every LookupDataAdapter can be configured to run a refresh job to load new data, do internal cleanup or similar tasks. This object takes care of scheduling the refresh so the data adapter don't have to do that on their own.

A service LookupDataAdapterRefreshService.Listener instance will be attached to every LookupDataAdapter during startup. The listener takes care of adding and removing the LookupDataAdapter from the refresh service when the data adapter gets started or stopped.