Example usage for org.apache.cassandra.utils FBUtilities waitOnFuture

List of usage examples for org.apache.cassandra.utils FBUtilities waitOnFuture

Introduction

In this page you can find the example usage for org.apache.cassandra.utils FBUtilities waitOnFuture.

Prototype

public static <T> T waitOnFuture(Future<T> future) 

Source Link

Usage

From source file:com.mirantis.magnetodb.cassandra.db.index.MagnetoDBLocalSecondaryIndex.java

License:Apache License

public void forceBlockingFlush() {
    if (isQueryPropertiesField)
        return;//from ww  w  . ja va  2s .c  o m

    Future<?> wait;
    // we synchronise on the baseCfs to make sure we are ordered correctly with other flushes to the base CFS
    synchronized (baseCfs.getDataTracker()) {
        wait = indexCfs.forceFlush();
    }
    FBUtilities.waitOnFuture(wait);
}