Package com.aspectran.core.service
Interface ServiceStateListener
-
- All Superinterfaces:
java.util.EventListener
public interface ServiceStateListener extends java.util.EventListenerThe listener interface for receiving service state change events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpaused()This method is called when the service is paused for a period of time.voidpaused(long millis)This method is called when the service is paused.voidrestarted()This method is called when the service is restarted.voidresumed()This method is called when the service is resumed.voidstarted()This method is called when the service is started.voidstopped()This method is called when the service is stopped.
-
-
-
Method Detail
-
started
void started()
This method is called when the service is started.
-
restarted
void restarted()
This method is called when the service is restarted.
-
paused
void paused(long millis)
This method is called when the service is paused.- Parameters:
millis- the number of seconds the service should pause execution
-
paused
void paused()
This method is called when the service is paused for a period of time.
-
resumed
void resumed()
This method is called when the service is resumed.
-
stopped
void stopped()
This method is called when the service is stopped.
-
-