open method
Opens the session.
correlationId
(optional) transaction id to trace execution through call chain. Return Future that receives error or null no errors occured.
Implementation
@override
Future open(String? correlationId) async {
if (isOpen()) {
return;
}
return Future.delayed(Duration(), () {
_cleanupTimer = FixedRateTimer(() {
_logger.info(correlationId, 'Closing expired user sessions');
closeExpiredSessions(correlationId);
}, _cleanupInterval, 0);
_cleanupTimer!.start();
});
}