Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: protected org.jboss.netty.channel.ChannelFutureListener newChannelFutureListener(final org.jboss.netty.buffer.ChannelBuffer buffer)
        protected internal override ChannelFutureListener NewChannelFutureListener(ChannelBuffer buffer)
        {
            return(future =>
            {
                buffer.clear();
                _freeBuffers.AddLast(buffer);
                BufferReusingChunkingChannelBuffer.this.OperationComplete(future);
            });
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void serializeRequest(org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, RequestType type, RequestContext ctx, Serializer payload) throws java.io.IOException
        public virtual void SerializeRequest(Channel channel, ChannelBuffer buffer, RequestType type, RequestContext ctx, Serializer payload)
        {
            buffer.clear();
            ChunkingChannelBuffer chunkingBuffer = new ChunkingChannelBuffer(buffer, channel, _chunkSize, _internalProtocolVersion, _applicationProtocolVersion);

            chunkingBuffer.WriteByte(type.Id());
            WriteContext(ctx, chunkingBuffer);
            payload.Write(chunkingBuffer);
            chunkingBuffer.Done();
        }
Beispiel #3
0
 public virtual void Clear(bool failure)
 {
     _buffer.clear();
     this._failure = failure;
     AddRoomForContinuationHeader();
 }