use of net.morimekta.test.providence.thrift.service.MyService.Processor in project providence by morimekta.
the class SocketServerTest method setUpClass.
@BeforeClass
public static void setUpClass() {
setDefaultPollDelay(20, TimeUnit.MILLISECONDS);
impl = mock(Iface.class);
instrumentation = mock(ServiceCallInstrumentation.class);
server = SocketServer.builder(new Processor(impl)).withSerializer(new BinarySerializer(true)).withInstrumentation(instrumentation).withMaxBacklog(1).withThreadFactory(new ThreadFactoryBuilder().setDaemon(true).setNameFormat("test-%d").build()).withWorkerThreads(1).withClientTimeout(200).start();
port = server.getPort();
}
Aggregations