Package com.aspectran.core.service
Interface ServiceStateListener
-
- All Superinterfaces:
java.util.EventListener
public interface ServiceStateListener extends java.util.EventListener
The listener interface for receiving service state change events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
paused()
This method is called when the service is paused for a period of time.void
paused(long millis)
This method is called when the service is paused.void
restarted()
This method is called when the service is restarted.void
resumed()
This method is called when the service is resumed.void
started()
This method is called when the service is started.void
stopped()
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.
-
-