use of org.neo4j.kernel.api.exceptions.index.ExceptionDuringFlipKernelException in project neo4j by neo4j.
the class FlippableIndexProxy method flip.
public void flip(Callable<Void> actionDuringFlip, FailedIndexProxyFactory failureDelegate) throws FlipFailedKernelException {
lock.writeLock().lock();
try {
assertOpen();
try {
actionDuringFlip.call();
this.delegate = flipTarget.create();
} catch (Exception e) {
this.delegate = failureDelegate.create(e);
throw new ExceptionDuringFlipKernelException(e);
}
} finally {
lock.writeLock().unlock();
}
}
Aggregations