use of com.ctrip.xpipe.redis.meta.server.dcchange.impl.DefaultOffsetwaiter in project x-pipe by ctripcorp.
the class DefaultOffsetwaiterTest method beforeDefaultOffsetwaiterTest.
@Before
public void beforeDefaultOffsetwaiterTest() throws Exception {
offsetwaiter = new DefaultOffsetwaiter();
offsetwaiter.setKeyedObjectPool(getXpipeNettyClientKeyedObjectPool());
offsetwaiter.setMetaServerConfig(new UnitTestServerConfig().setWaitforOffsetMilli(waitforOffsetMilli));
offsetwaiter.setScheduled(scheduled);
executionLog = new ExecutionLog(currentTestName());
host = "127.0.0.1";
port = randomPort();
}
Aggregations