org.jppf.server.nio
Class NioMessage

java.lang.Object
  extended by org.jppf.server.nio.NioMessage

public class NioMessage
extends Object

Instances of this class are wrappers for the data to send to or receive from nodes.

Author:
Laurent Cohen

Field Summary
 ByteBuffer buffer
          Buffer containg the message's data.
 int length
          Total length of the message to read.
 boolean lengthWritten
          Determines whether the buffer length has already been sent.
 
Constructor Summary
NioMessage()
           
 
Method Summary
 String toString()
          Get a string representation of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

length

public int length
Total length of the message to read.


buffer

public ByteBuffer buffer
Buffer containg the message's data.


lengthWritten

public boolean lengthWritten
Determines whether the buffer length has already been sent.

Constructor Detail

NioMessage

public NioMessage()
Method Detail

toString

public String toString()
Get a string representation of this message.

Overrides:
toString in class Object
Returns:
a string representing this NioMessage instance.
See Also:
Object.toString()


Copyright © 2005-2010 JPPF Team.