/** * Retrieves all durable continuous queries on the server using connections from the given pool to * communicate with the server. * * @param pool the pool to use to communicate with the server. */ public static List<String> execute(ExecutablePool pool) { AbstractOp op = new GetDurableCQsOpImpl(); return (List<String>) pool.executeOnPrimary(op); }
/** * Does a get on the primary server using connections from the given pool * * @param pool the pool to use to communicate with the server. * @param event the eventid to do the get on * @param callbackArg an optional callback arg to pass to any cache callbacks * @return the entry value found by the get if any */ public static Object executeOnPrimary(ExecutablePool pool, EventID event, Object callbackArg) { AbstractOp op = new GetEventValueOpImpl(event, callbackArg); return pool.executeOnPrimary(op); }