releaseExpiredSessions

public synchronized Iterable<ShardIndex> releaseExpiredSessions(Duration inactivityPeriod)

Clears up the recorded NodeIds from the session records if there was no activity for longer than passed inactivityPeriod.

It may be handy if an application node hangs or gets killed — so that it is not able to complete the session in a conventional way.

Return

the indexes of shards which sessions have been released

Parameters

inactivityPeriod

the duration of the period after which the session is considered expired