165166167168169170171172173174175
do { int cnt = 0; Util.Timer timer = Timer.startNewTimer(); Future<ResponseStatus> futureStat = null; while(cnt < reqCnt){ futureStat = pipeline.ping(); cnt++; } long reqDoneTime = timer.mark(); futureStat.get(); long respDoneTime = timer.mark();
170171172173174175176177178179180
do { int cnt = 0; Util.Timer timer = Timer.startNewTimer(); Future<ResponseStatus> futureStat = null; while(cnt < reqCnt){ futureStat = pipeline.ping(); cnt++; } long reqDoneTime = timer.mark(); assert futureStat != null; @SuppressWarnings("null")
7576777879808182838485
*/ @AfterTest public void testQuit() { try { JRedisFuture pipeline = getProviderInstance(); pipeline.ping().get(); pipeline.quit().get(); } catch (Exception e) { fail("QUIT" + e); }
8081828384858687888990