com.regexlab.j2e
Interface ServiceStatusHandler


public interface ServiceStatusHandler

Callback interface when service status changes


Method Summary
 boolean canPause()
          Tell the service manager whether PAUSE/CONTINUE is supported.
 boolean onContinue()
          Pause/continue event handle methods
 boolean onPause()
          Pause/continue event handle methods
 boolean onStop()
          Stop service event handle method
 

Method Detail

canPause

boolean canPause()
Tell the service manager whether PAUSE/CONTINUE is supported.

Returns:
true means this service can be paused

onPause

boolean onPause()
Pause/continue event handle methods

Returns:
must return true if pause successfully

onContinue

boolean onContinue()
Pause/continue event handle methods

Returns:
must return true if continue successfully

onStop

boolean onStop()
Stop service event handle method

Returns:
no use