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

@param session The session to add.