public boolean isClosed() {
        synchronized (monitor) {
            return state == State.CLOSED;
        }
    }
Sets all subscriptions under this subscriber to have the given generation. This is intended for testing, to emulate a
reload-config operation.

@param generation a generation number
config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java