Package com.dianping.cat.message.spi.core.TcpSocketReceiver

Examples of com.dianping.cat.message.spi.core.TcpSocketReceiver.DecodeMessageTask


    buf.writeBytes("asdf".getBytes());

    queue.add(buf);

    MockHandler handler = new MockHandler();
    DecodeMessageTask task = new TcpSocketReceiver().new DecodeMessageTask(0, queue, new MockCodec(), handler);

    task.handleMessage();

    handler.assertEqual(builder.build());

    TcpSocketReceiver receiver = lookup(TcpSocketReceiver.class);
   
View Full Code Here

TOP

Related Classes of com.dianping.cat.message.spi.core.TcpSocketReceiver.DecodeMessageTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.