/** * Set the interval to 0 to dispatch events as soon as they are queued. * If a negative value is used the dispatch timer will never run, a manual dispatch must be used. * * @param dispatchInterval in milliseconds */ public Tracker setDispatchInterval(long dispatchInterval) { mDispatcher.setDispatchInterval(dispatchInterval); return this; }
/** * Set the interval to 0 to dispatch events as soon as they are queued. * If a negative value is used the dispatch timer will never run, a manual dispatch must be used. * * @param dispatchInterval in milliseconds */ public Tracker setDispatchInterval(long dispatchInterval) { mDispatcher.setDispatchInterval(dispatchInterval); return this; }
@Test public void testSetDispatchInterval() { Tracker tracker = new Tracker(mMatomo, mTrackerBuilder); tracker.setDispatchInterval(1); verify(mDispatcher).setDispatchInterval(1); tracker.getDispatchInterval(); verify(mDispatcher).getDispatchInterval(); }
@Test public void testSetDispatchInterval() { Tracker tracker = new Tracker(mMatomo, mTrackerBuilder); tracker.setDispatchInterval(1); verify(mDispatcher).setDispatchInterval(1); tracker.getDispatchInterval(); verify(mDispatcher).getDispatchInterval(); }