|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.instance.LifecycleServiceImpl
public class LifecycleServiceImpl
Field Summary | |
---|---|
static int |
DEFAULT_GRACEFUL_SHUTDOWN_WAIT
|
Constructor Summary | |
---|---|
LifecycleServiceImpl(HazelcastInstanceImpl instance)
|
Method Summary | |
---|---|
String |
addLifecycleListener(LifecycleListener lifecycleListener)
Add a listener object to listen for lifecycle events. |
void |
fireLifecycleEvent(LifecycleEvent.LifecycleState lifecycleState)
|
void |
fireLifecycleEvent(LifecycleEvent lifecycleEvent)
|
boolean |
isRunning()
checks whether or not the instance is running |
boolean |
removeLifecycleListener(String registrationId)
Removes a lifecycle listener |
void |
runUnderLifecycleLock(Runnable runnable)
|
void |
shutdown()
gracefully shutdowns HazelcastInstance. |
void |
terminate()
terminate HazelcastInstance ungracefully. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_GRACEFUL_SHUTDOWN_WAIT
Constructor Detail |
---|
public LifecycleServiceImpl(HazelcastInstanceImpl instance)
Method Detail |
---|
public String addLifecycleListener(LifecycleListener lifecycleListener)
LifecycleService
addLifecycleListener
in interface LifecycleService
lifecycleListener
- the listener object
public boolean removeLifecycleListener(String registrationId)
LifecycleService
removeLifecycleListener
in interface LifecycleService
registrationId
- The listener id returned by LifecycleService.addLifecycleListener(LifecycleListener)
public void fireLifecycleEvent(LifecycleEvent.LifecycleState lifecycleState)
public void fireLifecycleEvent(LifecycleEvent lifecycleEvent)
public boolean isRunning()
LifecycleService
isRunning
in interface LifecycleService
public void shutdown()
LifecycleService
LifecycleService.terminate()
,
it waits for partition operations to be completed.
shutdown
in interface LifecycleService
public void terminate()
LifecycleService
terminate
in interface LifecycleService
public void runUnderLifecycleLock(Runnable runnable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |