Package org.graylog2.shared.initializers
Class PeriodicalsService
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog2.shared.initializers.PeriodicalsService
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
@Singleton
public class PeriodicalsService
extends com.google.common.util.concurrent.AbstractIdleService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Constructor Summary
ConstructorDescriptionPeriodicalsService
(Periodicals periodicals, Set<Periodical> allPeriodicals, com.google.common.eventbus.EventBus eventBus, LeaderElectionService leaderElectionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
leaderChanged
(LeaderChangedEvent leaderChangedEvent) protected void
shutDown()
protected void
startUp()
Methods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
-
Constructor Details
-
PeriodicalsService
@Inject public PeriodicalsService(Periodicals periodicals, Set<Periodical> allPeriodicals, com.google.common.eventbus.EventBus eventBus, LeaderElectionService leaderElectionService)
-
-
Method Details