Examples of encodeHeader()


Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

                RemotingCommand.createRequestCommand(RequestCode.CHECK_TRANSACTION_STATE, requestHeader);
        request.markOnewayRPC();

        try {
            FileRegion fileRegion =
                    new OneMessageTransfer(request.encodeHeader(selectMapedBufferResult.getSize()),
                        selectMapedBufferResult);
            channel.writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                @Override
                public void operationComplete(ChannelFuture future) throws Exception {
                    selectMapedBufferResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

                this.brokerController.getBrokerStatsManager().incBrokerGetNums(
                    getMessageResult.getMessageCount());

                try {
                    FileRegion fileRegion =
                            new ManyMessageTransfer(response.encodeHeader(getMessageResult
                                .getBufferTotalSize()), getMessageResult);
                    channel.writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                        @Override
                        public void operationComplete(ChannelFuture future) throws Exception {
                            getMessageResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

            response.setCode(ResponseCode.SUCCESS);
            response.setRemark(null);

            try {
                FileRegion fileRegion =
                        new QueryMessageTransfer(response.encodeHeader(queryMessageResult
                            .getBufferTotalSize()), queryMessageResult);
                ctx.channel().writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                    @Override
                    public void operationComplete(ChannelFuture future) throws Exception {
                        queryMessageResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

            response.setCode(ResponseCode.SUCCESS);
            response.setRemark(null);

            try {
                FileRegion fileRegion =
                        new OneMessageTransfer(response.encodeHeader(selectMapedBufferResult.getSize()),
                            selectMapedBufferResult);
                ctx.channel().writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                    @Override
                    public void operationComplete(ChannelFuture future) throws Exception {
                        selectMapedBufferResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

                RemotingCommand.createRequestCommand(RequestCode.CHECK_TRANSACTION_STATE, requestHeader);
        request.markOnewayRPC();

        try {
            FileRegion fileRegion =
                    new OneMessageTransfer(request.encodeHeader(selectMapedBufferResult.getSize()),
                        selectMapedBufferResult);
            channel.writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                @Override
                public void operationComplete(ChannelFuture future) throws Exception {
                    selectMapedBufferResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

            switch (response.getCode()) {
            case ResponseCode.SUCCESS:
                try {
                    FileRegion fileRegion =
                            new ManyMessageTransfer(response.encodeHeader(getMessageResult
                                .getBufferTotalSize()), getMessageResult);
                    channel.writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                        @Override
                        public void operationComplete(ChannelFuture future) throws Exception {
                            getMessageResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

                RemotingCommand.createRequestCommand(RequestCode.CHECK_TRANSACTION_STATE, requestHeader);
        request.markOnewayRPC();

        try {
            FileRegion fileRegion =
                    new OneMessageTransfer(request.encodeHeader(selectMapedBufferResult.getSize()),
                        selectMapedBufferResult);
            channel.writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                @Override
                public void operationComplete(ChannelFuture future) throws Exception {
                    selectMapedBufferResult.release();
View Full Code Here

Examples of com.alibaba.rocketmq.remoting.protocol.RemotingCommand.encodeHeader()

                RemotingCommand.createRequestCommand(RequestCode.CHECK_TRANSACTION_STATE, requestHeader);
        request.markOnewayRPC();

        try {
            FileRegion fileRegion =
                    new OneMessageTransfer(request.encodeHeader(selectMapedBufferResult.getSize()),
                        selectMapedBufferResult);
            channel.writeAndFlush(fileRegion).addListener(new ChannelFutureListener() {
                @Override
                public void operationComplete(ChannelFuture future) throws Exception {
                    selectMapedBufferResult.release();
View Full Code Here

Examples of com.twitter.hpack.Encoder.encodeHeader()

        Encoder encoder = new Encoder();
        ByteArrayOutputStream stream = new ByteArrayOutputStream();
        for (int ix = 0; ix < entries.length;) {
            byte[] key = entries[ix++];
            byte[] value = entries[ix++];
            encoder.encodeHeader(stream, key, value, false);
        }
        return Unpooled.wrappedBuffer(stream.toByteArray());
    }
}
View Full Code Here

Examples of org.bigbluebutton.deskshare.client.encoder.ScreenVideoFlvEncoder.encodeHeader()

  @Test
  public void testEncodeFlvHeader() {
    final byte[] flvHeaderPlusPrevTagSize = {'F','L','V',0x01,0x01,0x00,0x00,0x00,0x09,0,0,0,0};
    ScreenVideoFlvEncoder svf = new ScreenVideoFlvEncoder();
   
    byte[] header = svf.encodeHeader();
    Assert.assertEquals(header, flvHeaderPlusPrevTagSize);
  }
 

 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.