@Override public boolean executeOperation(BlobStore store, Object... objs) throws StorageException { store.clear(); return true; } },
@Override public void clear() throws StorageException { // Check if the blobstore has already been configured if (configured.get()) { // Increment the number of current operations // This behavior is used in order to wait // the end of all the operations after setting // the configured parameter to false actualOperations.incrementAndGet(); try { // Clear the BlobStore delegate.clear(); } finally { // Decrement the number of current operations. actualOperations.decrementAndGet(); } } }