com.sun.grizzly.http
Class SocketChannelOutputBuffer.ByteBufferClonerImpl
java.lang.Object
com.sun.grizzly.http.SocketChannelOutputBuffer.ByteBufferClonerImpl
- All Implemented Interfaces:
- ByteBufferCloner
- Enclosing class:
- SocketChannelOutputBuffer
protected final class SocketChannelOutputBuffer.ByteBufferClonerImpl
- extends Object
- implements ByteBufferCloner
ByteBufferCloner
implementation, which is called by Grizzly
framework at the time, when asynchronous write queue can not write
the buffer direcly on socket and instead will put it in queue.
This implementation tries to get temporary ByteBuffer from the pool,
if no ByteBuffer is available - then new one will be created.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketChannelOutputBuffer.ByteBufferClonerImpl
protected SocketChannelOutputBuffer.ByteBufferClonerImpl()
clone
public ByteBuffer clone(ByteBuffer originalByteBuffer)
- Specified by:
clone
in interface ByteBufferCloner
Copyright © 2012 Oracle Corporation. All Rights Reserved.