List of usage examples for com.google.common.base Service.Listener subclass-usage
From source file org.graylog2.utilities.LoggingServiceListener.java
/**
* This class is a convenience listener for {@link Service} instances so that service lifecycle changes can easily
* be logged without having to manually write listeners everywhere.
* <br />
* It allows adding an action that is run when the service transitions into {@link Service.State#RUNNING} as that is
* the most common case. If you need additional, or more complex listeners, add a new instance in addition to this simple