|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LifecycleService
LifecycleService allows you to shutdown, terminate and listen to LifecycleEvent's
on HazelcastInstance.
| Method Summary | |
|---|---|
String |
addLifecycleListener(LifecycleListener lifecycleListener)
Add listener object to listen lifecycle events. |
boolean |
isRunning()
whether the instance is running |
boolean |
removeLifecycleListener(String registrationId)
Remove lifecycle listener |
void |
shutdown()
gracefully shutdowns HazelcastInstance. |
void |
terminate()
terminate HazelcastInstance ungracefully. |
| Method Detail |
|---|
boolean isRunning()
void shutdown()
terminate(), waits partition operations to be completed.
void terminate()
String addLifecycleListener(LifecycleListener lifecycleListener)
lifecycleListener - Listener object
boolean removeLifecycleListener(String registrationId)
registrationId - The listener id returned by addLifecycleListener(LifecycleListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||