public void openSession ( PrimaryBackupSession session ) { sessions . put ( session . sessionId ( ) . id ( ) , session ) ; listeners . forEach ( l -> l . onOpen ( session ) ) ; }
Adds a session to the sessions list .