|
||||||||||
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 a listener object to listen for lifecycle events. |
boolean |
isRunning()
checks whether or not the instance is running |
boolean |
removeLifecycleListener(String registrationId)
Removes a lifecycle listener |
void |
shutdown()
gracefully shutdowns HazelcastInstance. |
void |
terminate()
terminate HazelcastInstance ungracefully. |
Method Detail |
---|
boolean isRunning()
void shutdown()
terminate()
,
it waits for partition operations to be completed.
void terminate()
String addLifecycleListener(LifecycleListener lifecycleListener)
lifecycleListener
- the 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 |