private boolean startFlush(Channel ch, boolean automatic_resume) { log.debug( "starting flush on " + ch.getAddress() + " with automatic resume=" + automatic_resume); boolean result = Util.startFlush(ch); if (automatic_resume) { ch.stopFlush(); } return result; }
private boolean startFlush(Channel ch, int num_attempts, long timeout, boolean automatic_resume) { log.debug( "starting flush on " + ch.getAddress() + " with automatic resume=" + automatic_resume); boolean result = Util.startFlush(ch, num_attempts, 10, timeout); if (automatic_resume) { ch.stopFlush(); } return result; }
public void testSequentialFlushInvocation() throws Exception { Channel a = null, b = null, c = null; try { a = createChannel(true, 3, "A"); a.connect("testSequentialFlushInvocation"); b = createChannel((JChannel) a, "B"); b.connect("testSequentialFlushInvocation"); c = createChannel((JChannel) a, "C"); c.connect("testSequentialFlushInvocation"); Util.waitUntilAllChannelsHaveSameSize(10000, 1000, a, b, c); for (int i = 0; i < 100; i++) { System.out.print("flush #" + i + ": "); a.startFlush(false); a.stopFlush(); System.out.println("OK"); } } finally { Util.close(a, b, c); } }
private void stopFlush(Channel ch) { log.debug("calling stopFlush()"); ch.stopFlush(); }