/** * Does a region removeAll on a server using connections from the given pool to communicate with * the server. * * @param pool the pool to use to communicate with the server. * @param region the name of the region to do the removeAll on * @param keys Collection of keys to remove * @param eventId the event id for this op */ public static VersionedObjectList execute(ExecutablePool pool, Region region, Collection<Object> keys, EventID eventId, boolean isRetry, Object callbackArg) { RemoveAllOpImpl op = new RemoveAllOpImpl(region, keys, eventId, ((PoolImpl) pool).getPRSingleHopEnabled(), callbackArg); op.initMessagePart(); if (isRetry) { op.getMessage().setIsRetry(); } return (VersionedObjectList) pool.execute(op); }