public interface LifecycleService
LifecycleEvent
s
on HazelcastInstance.Modifier and Type | Method and Description |
---|---|
UUID |
addLifecycleListener(LifecycleListener lifecycleListener)
Add a listener object to listen for lifecycle events.
|
boolean |
isRunning()
Checks whether or not the instance is running.
|
boolean |
removeLifecycleListener(UUID registrationId)
Removes a lifecycle listener.
|
void |
shutdown()
Gracefully shuts down HazelcastInstance.
|
void |
terminate()
Terminate HazelcastInstance ungracefully.
|
boolean isRunning()
true
, if instance is active and running, false
otherwisevoid shutdown()
terminate()
in that it waits for partition operations to complete.void terminate()
shutdown()
for graceful shutdown.@Nonnull UUID addLifecycleListener(@Nonnull LifecycleListener lifecycleListener)
lifecycleListener
- the listener objectboolean removeLifecycleListener(@Nonnull UUID registrationId)
registrationId
- the listener ID returned by addLifecycleListener(LifecycleListener)
Copyright © 2024 Hazelcast, Inc.. All rights reserved.