cometd-java/cometd-java-server/cometd-java-server-common/src/main/java/org/cometd/server/ServerChannelImpl.java
/**
     * Waits for the channel to be {@link #initialized() initialized}, to avoid
     * that channels are returned to applications in a half-initialized state,
     * in particular before {@link Initializer}s have run.
     *
     * @see BayeuxServerImpl#createChannelIfAbsent(String, Initializer...)
     */
Waits for the channel to be  #initialized() initialized, to avoid
that channels are returned to applications in a half-initialized state,
in particular before  Initializers have run.


Waits for the channel to be #initialized () initialized to avoid that channels are returned to applications in a half - initialized state in particular before Initializers have run .
void waitForInitialized() {
        try {
            if (!_initialized.await(5, TimeUnit.SECONDS)) {
                throw new IllegalStateException("Not Initialized: " + this);
            }
        } catch (InterruptedException x) {
            throw new IllegalStateException("Initialization interrupted: " + this, x);
        }
    }
void waitForInitialized ( ) { try { if ( ! _initialized . await ( 5 , TimeUnit . SECONDS ) ) { throw new IllegalStateException ( "Not Initialized: " + this ) ; } } catch ( InterruptedException x ) { throw new IllegalStateException ( "Initialization interrupted: " + this , x ) ; } }
Waits for the channel to be {@link #initialized() initialized}, to avoid
 that channels are returned to applications in a half-initialized state,
 in particular before {@link Initializer}s have run.
Waits for the channel to be { @link #initialized () initialized } to avoid that channels are returned to applications in a half - initialized state in particular before { @link Initializer } s have run .