com.sun.grizzly.async
Interface ByteBufferCloner
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 |
java.nio.ByteBuffer |
clone(java.nio.ByteBuffer originalByteBuffer)
|
clone
java.nio.ByteBuffer clone(java.nio.ByteBuffer originalByteBuffer)
Copyright © 2012 Oracle Corporation. All Rights Reserved.