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