@Override
    public ClusterState getQuickClusterState() {
        // Just get the current state if we can.
        if (clusterState.getUpdateTime() == 0) {
            securityContext.asProcessingUser(() -> {
                // Create a cluster state object but don't bother trying to contact
                // remote nodes to determine active status.
                final Runnable runnable = taskContextFactory.context(
                        "Create Cluster State",
                        taskContext -> exec(clusterState, 0, false));
                runnable.run();
            });
        }
        return clusterState;
    }
Gets the current cluster state or builds a new cluster state if no
current state exists but without locking. This method is quick as either
the current state is returned or a basic state is created that does not
attempt to determine which nodes are active or what the current master
node is.
stroom-cluster/stroom-cluster-impl/src/main/java/stroom/cluster/impl/ClusterNodeManagerImpl.java