com.sun.grizzly.async
Interface ByteBufferCloner

All Known Implementing Classes:
SocketChannelOutputBuffer.ByteBufferClonerImpl

public interface ByteBufferCloner

Cloner, which will be called by AsyncQueueWriter, when ByteBuffer could not be written directly, and will be added to the queue. Cloner may create a clone of original ByteBuffer and return it to the AsyncQueueWriter instead of original one. Using ByteBufferCloner, developer has a chance to clone a ByteBuffer only in case, when it is really required.

Author:
Alexey Stashok

Method Summary
 ByteBuffer clone(ByteBuffer originalByteBuffer)
           
 

Method Detail

clone

ByteBuffer clone(ByteBuffer originalByteBuffer)


Copyright © 2012 Oracle Corporation. All Rights Reserved.