public interface CPSessionManagementService
CP sessions are used for tracking liveliness of Hazelcast servers and clients that hold CP resources.
CPSession
Modifier and Type | Method and Description |
---|---|
CompletionStage<Boolean> |
forceCloseSession(String groupName,
long sessionId)
If a Hazelcast instance that owns a CP session crashes, its CP session
is not terminated immediately.
|
CompletionStage<Collection<CPSession>> |
getAllSessions(String groupName)
Returns a non-null collection of CP sessions that are currently active
in the given CP group.
|
CompletionStage<Collection<CPSession>> getAllSessions(String groupName)
CompletionStage<Boolean> forceCloseSession(String groupName, long sessionId)
CPSubsystemConfig.getSessionTimeToLiveSeconds()
passes.
If it is known for sure that the session owner is not partitioned away
and actually crashed, this method can be used for closing the session and
releasing its resources immediately.Copyright © 2024 Hazelcast, Inc.. All rights reserved.