Examples of unsub()


Examples of org.haystack.HWatch.unsub()

        // check for close or unsub
        if (watch != null) {
            if (req.meta().has("close"))
                watch.close();
            else
                watch.unsub(gridToIds(db, req));
        }

        // nothing to return
        writeGrid(writer, HGrid.EMPTY);
    }
View Full Code Here

Examples of org.haystack.HWatch.unsub()

        verifyGridContains(poll, "id", b.id());
        verifyGridContains(poll, "id", c.id());
        verifyGridContains(poll, "id", d.id());

        // remove d, and then poll changes
        w.unsub(new HRef[] { d.id() });
        client.eval("commit(diff(readById(@" + b.id().val + "), {-javaTest}))");
        client.eval("commit(diff(readById(@" + d.id().val + "), {-javaTest}))");
        poll = w.pollChanges();
        verifyEq(poll.numRows(), 1);
        verifyEq(poll.row(0).dis(), b.dis());
View Full Code Here

Examples of org.haystack.HWatch.unsub()

        verifyEq(poll.numRows(), 1);
        verifyEq(poll.row(0).dis(), b.dis());
        verifyEq(poll.row(0).has("javaTest"), false);

        // remove a and c and poll refresh
        w.unsub(new HRef[] { a.id(), c.id() });
        poll = w.pollRefresh();
        verifyEq(poll.numRows(), 1);
        verifyEq(poll.row(0).dis(), b.dis());

        // close
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.