Exemple #1
0
 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));
 }
Exemple #2
0
 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);
 }