Package net.sf.cindy

Examples of net.sf.cindy.Buffer.limit()


            Object obj = decoder.decode(session, packet);
            if (obj != null)
                return obj;

            // not use slice to create new buffer, reduce memory cost
            content.limit(limit);
            content.position(position);
        }
        return null;
    }
View Full Code Here


            this.obj = obj;
            this.future = future;

            Buffer content = packet.getContent();
            position = content.position();
            limit = content.limit();
        }

    }

    private final Queue sendQueue = new PriorityQueue();
View Full Code Here

                        continue;
                    }

                    Buffer buffer = currentSendPacket.getContent();
                    if (!buffer.hasRemaining() || write(currentSendPacket)) {
                        buffer.limit(currentSendPacket.limit);
                        buffer.position(currentSendPacket.position);
                        buffer.release();
                        final FuturePacket packet = currentSendPacket;
                        currentSendPacket = null;
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.