configurationDao = DaoFactory.getConfigurationDAO(cluster);
}
@Around("execution(* org.apache.cassandra.thrift.CassandraServer.doInsert(..))")
public void process(ProceedingJoinPoint joinPoint) throws Throwable {
ConsistencyLevel consistency = (ConsistencyLevel) joinPoint.getArgs()[0];
@SuppressWarnings("unchecked")
List<IMutation> mutations = (List<IMutation>) joinPoint.getArgs()[1];
Handler handler = new Handler(cluster, indexDao, configurationDao, mutations, consistency);
Future<?> future = executors.submit(handler);
future.get();