Example usage for com.google.common.util.concurrent Service.Listener subclass-usage

List of usage examples for com.google.common.util.concurrent Service.Listener subclass-usage

Introduction

In this page you can find the example usage for com.google.common.util.concurrent Service.Listener subclass-usage.

Usage

From source file org.graylog2.utilities.LatchUpdaterListener.java

/**
 * Counts down the given latch when the service has finished "starting", i.e. either it runs fine or failed during startup.
 *
 */
public class LatchUpdaterListener extends Service.Listener {
    private final CountDownLatch latch;

From source file io.pravega.common.concurrent.ServiceShutdownListener.java

/**
 * Service Listeners that invokes callbacks when the monitored service terminates or fails.
 */
public class ServiceShutdownListener extends Service.Listener {
    //region Members