/** * Close a continuous query on the given server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. * @param cqName name of the CQ to close */ public static void execute(ExecutablePool pool, String cqName) { AbstractOp op = new CloseCQOpImpl(cqName); pool.executeOnAllQueueServers(op); }
/** * Does a region unregisterInterestList 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 unregisterInterestList on * @param keys list of keys we are interested in * @param isClosing true if this unregister is done by a close * @param keepAlive true if this unregister should not undo a durable registration */ public static void execute(ExecutablePool pool, String region, List keys, boolean isClosing, boolean keepAlive) { AbstractOp op = new UnregisterInterestListOpImpl(region, keys, isClosing, keepAlive); pool.executeOnAllQueueServers(op); }
/** * Does a region unregisterInterest 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 unregisterInterest on * @param key describes what we are no longer interested in * @param interestType the {@link InterestType} for this unregister * @param isClosing true if this unregister is done by a close * @param keepAlive true if this unregister should not undo a durable registration */ public static void execute(ExecutablePool pool, String region, Object key, int interestType, boolean isClosing, boolean keepAlive) { AbstractOp op = new UnregisterInterestOpImpl(region, key, interestType, isClosing, keepAlive); pool.executeOnAllQueueServers(op); }