segmentstore/server/src/main/java/io/pravega/segmentstore/server/CacheManager.java
public void register(Client client) {
        Exceptions.checkNotClosed(this.closed.get(), this);
        Preconditions.checkNotNull(client, "client");
        synchronized (this.lock) {
            if (!this.clients.contains(client)) {
                this.clients.add(client);
                client.updateGenerations(this.currentGeneration, this.oldestGeneration);
            }
        }

        log.info("{} Registered {}.", TRACE_OBJECT_ID, client);
    }
/**
     * Registers the given client to this CacheManager.
     *
     * @param client The client to register.
     */
Registers the given client to this CacheManager.
@param client The client to register.
Registers the given client to this CacheManager . @param client The client to register .
public void register(Client client) {
        Exceptions.checkNotClosed(this.closed.get(), this);
        Preconditions.checkNotNull(client, "client");
        synchronized (this.lock) {
            if (!this.clients.contains(client)) {
                this.clients.add(client);
                client.updateGenerations(this.currentGeneration, this.oldestGeneration);
            }
        }
        log.info("{} Registered {}.", TRACE_OBJECT_ID, client);
    }
public void register ( Client client ) { Exceptions . checkNotClosed ( this . closed . get ( ) , this ) ; Preconditions . checkNotNull ( client , "client" ) ; synchronized ( this . lock ) { if ( ! this . clients . contains ( client ) ) { this . clients . add ( client ) ; client . updateGenerations ( this . currentGeneration , this . oldestGeneration ) ; } } log . info ( "{} Registered {}." , TRACE_OBJECT_ID , client ) ; }
Registers the given client to this CacheManager.
Registers the given client to this CacheManager .