final NotifyingFuture<Void> clearAsync( EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) { InvocationContext ctx = getInvocationContextWithImplicitTransaction(explicitFlags, explicitClassLoader); ctx.setUseFutureReturnType(true); ClearCommand command = commandsFactory.buildClearCommand(ctx.getFlags()); return wrapInFuture(executeCommandAndCommitIfNeeded(ctx, command)); }
final void clear(EnumSet<Flag> explicitFlags, ClassLoader explicitClassLoader) { InvocationContext ctx = getInvocationContextWithImplicitTransaction(explicitFlags, explicitClassLoader); ClearCommand command = commandsFactory.buildClearCommand(ctx.getFlags()); executeCommandAndCommitIfNeeded(ctx, command); }
@Override public ClearCommand buildClearCommand(Set<Flag> flags) { return actual.buildClearCommand(flags); }