Package org.jppf.nio
Class ClassLoaderNioMessage
java.lang.Object
org.jppf.nio.AbstractNioMessageBase
org.jppf.nio.AbstractNioMessage
org.jppf.nio.ClassLoaderNioMessage
- All Implemented Interfaces:
NioMessage
Nio message that reads or writes a single object from/to the network.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.nio.AbstractNioMessage
locations, nbObjects, positionFields inherited from class org.jppf.nio.AbstractNioMessageBase
channel, channelReadCount, channelWriteCount, count, currentDataLocation, currentLength, currentLengthObject, currentObject, lengthBuf, resetCurrentLength, ssl, sslHandler, sslHandlerReadCount, sslHandlerWriteCountFields inherited from interface org.jppf.nio.NioMessage
READ, WRITE -
Constructor Summary
ConstructorsConstructorDescriptionClassLoaderNioMessage(NioContext channel) Initialize this nio message with the specified sll flag.ClassLoaderNioMessage(NioContext channel, JPPFResourceWrapper resource) Initialize this nio message with the specified sll flag. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidActions to take after the first object in the message has been fully read.protected voidActions to take before the first object in the message is written.Methods inherited from class org.jppf.nio.AbstractNioMessage
addLocation, getLocations, read, readNextObject, toString, write, writeNextObjectMethods inherited from class org.jppf.nio.AbstractNioMessageBase
getChannelReadCount, getChannelWriteCount, getCurrentDataLocation, isSSL, updateCounts
-
Constructor Details
-
ClassLoaderNioMessage
Initialize this nio message with the specified sll flag.- Parameters:
channel- the channel to read from or write to.
-
ClassLoaderNioMessage
Initialize this nio message with the specified sll flag.- Parameters:
channel- the channel to read from or write to.resource- the associated class loader resource.
-
-
Method Details
-
afterFirstRead
Actions to take after the first object in the message has been fully read.- Overrides:
afterFirstReadin classAbstractNioMessage- Throws:
Exception- if an IO error occurs.
-
beforeFirstWrite
Actions to take before the first object in the message is written.- Overrides:
beforeFirstWritein classAbstractNioMessage- Throws:
Exception- if an IO error occurs.
-
getResource
- Returns:
- the associated class loader resource.
-