public int numberOfActions() {
        synchronized (bulkRequestBuilder) {
            return bulkRequestBuilder.numberOfActions();
        }
    }
Thread-safe wrapper for {@link BulkRequestBuilder}.
es6-persistence/src/main/java/com/netflix/conductor/es6/dao/index/BulkRequestBuilderWrapper.java