Package org.hornetq.spi.core.remoting

Examples of org.hornetq.spi.core.remoting.BufferDecoder


public class HornetQFrameDecoderTest extends TestCase{

    public void testDecoding() {
        final ChannelBuffer buffer = ChannelBuffers.copiedBuffer("TestBytes", CharsetUtil.US_ASCII);

        DecoderEmbedder<ChannelBuffer> decoder = new DecoderEmbedder<ChannelBuffer>(new HornetQFrameDecoder(new BufferDecoder() {

            public int isReadyToHandle(HornetQBuffer buffer) {
                if (buffer.readableBytes()  > 2) {
                    return 2;
                }
View Full Code Here

TOP

Related Classes of org.hornetq.spi.core.remoting.BufferDecoder

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.