com.stackify.api.common.concurrent
public class ShutdownListener extends Object implements com.google.common.util.concurrent.Service.Listener
| Constructor and Description |
|---|
ShutdownListener(ScheduledExecutorService executor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
failed(com.google.common.util.concurrent.Service.State from,
Throwable failure) |
void |
running() |
void |
starting() |
void |
stopping(com.google.common.util.concurrent.Service.State from) |
void |
terminated(com.google.common.util.concurrent.Service.State from) |
public ShutdownListener(ScheduledExecutorService executor)
executor - Executorpublic void starting()
starting in interface com.google.common.util.concurrent.Service.ListenerService.Listener.starting()public void running()
running in interface com.google.common.util.concurrent.Service.ListenerService.Listener.running()public void stopping(com.google.common.util.concurrent.Service.State from)
stopping in interface com.google.common.util.concurrent.Service.ListenerService.Listener.stopping(com.google.common.util.concurrent.Service.State)public void terminated(com.google.common.util.concurrent.Service.State from)
terminated in interface com.google.common.util.concurrent.Service.ListenerService.Listener.terminated(com.google.common.util.concurrent.Service.State)public void failed(com.google.common.util.concurrent.Service.State from,
Throwable failure)
failed in interface com.google.common.util.concurrent.Service.ListenerService.Listener.failed(com.google.common.util.concurrent.Service.State, java.lang.Throwable)Copyright © 2015 Stackify, LLC. All Rights Reserved.