com.sun.grizzly.http
Class SocketChannelOutputBuffer.ByteBufferClonerImpl

java.lang.Object
  extended by 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.


Constructor Summary
protected SocketChannelOutputBuffer.ByteBufferClonerImpl()
           
 
Method Summary
 ByteBuffer clone(ByteBuffer originalByteBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketChannelOutputBuffer.ByteBufferClonerImpl

protected SocketChannelOutputBuffer.ByteBufferClonerImpl()
Method Detail

clone

public ByteBuffer clone(ByteBuffer originalByteBuffer)
Specified by:
clone in interface ByteBufferCloner


Copyright © 2012 Oracle Corporation. All Rights Reserved.