List of usage examples for org.apache.cassandra.utils FBUtilities waitOnFuture
public static <T> T waitOnFuture(Future<T> future)
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); }