closeExpiredSessions method
Close an expired sessions.
correlation_id
(optional) transaction id to trace execution through call chain. Return Future that receives null for success Throws error.
Implementation
@override
Future closeExpiredSessions(String? correlationId) {
var now = DateTime.now().millisecondsSinceEpoch;
var diff = now - _expireTimeout;
var requestTime = DateTime.fromMillisecondsSinceEpoch(diff);
return persistence.closeExpired(correlationId, requestTime);
}