org.jppf.server.nio.multiplexer.generic
Class ByteBufferWrapper

java.lang.Object
  extended by org.jppf.server.nio.multiplexer.generic.ByteBufferWrapper

public class ByteBufferWrapper
extends Object

Wrapper around a ByteBuffer that retains the order in which it was received.

Author:
Laurent Cohen

Field Summary
 ByteBuffer buffer
          The actual buffer.
 int order
          The creation order of this buffer wrapper instance.
 
Constructor Summary
ByteBufferWrapper(ByteBuffer buffer, int order)
          Create a byte buffer wrapper with the specified buffer and count.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

public ByteBuffer buffer
The actual buffer.


order

public int order
The creation order of this buffer wrapper instance.

Constructor Detail

ByteBufferWrapper

public ByteBufferWrapper(ByteBuffer buffer,
                         int order)
Create a byte buffer wrapper with the specified buffer and count.

Parameters:
buffer - the actual buffer.
order - the creation order of this buffer wrapper instance.


Copyright © 2005-2010 JPPF Team.