1 /******************************************************************************* 2 * Copyright 2011 Max Erik Rohde http://www.mxro.de 3 * 4 * All rights reserved. 5 ******************************************************************************/ 6 package de.mxro.service.callbacks; 7 8 import delight.async.callbacks.SimpleCallback; 9 10 /** 11 * Callback, which can be used, when a service component is shut down. 12 * 13 * @author <a href="http://www.mxro.de">Max Rohde</a> 14 * 15 */ 16 public interface ShutdownCallback extends SimpleCallback { 17 18 /** 19 * This method is called when the shutdown could be completed successfully. 20 */ 21 public abstract void onSuccess(); 22 23 /** 24 * This method is called when an error occurs in the shutdown process. 25 * 26 * @param t 27 */ 28 public abstract void onFailure(Throwable t); 29 }