com.sun.grizzly.http
Class SocketChannelOutputBuffer.AsyncWriteCallbackHandlerImpl
java.lang.Object
com.sun.grizzly.http.SocketChannelOutputBuffer.AsyncWriteCallbackHandlerImpl
- All Implemented Interfaces:
- AsyncWriteCallbackHandler
- Direct Known Subclasses:
- SSLOutputBuffer.AsyncWriteCallbackHandlerImpl
- Enclosing class:
- SocketChannelOutputBuffer
protected static class SocketChannelOutputBuffer.AsyncWriteCallbackHandlerImpl
- extends java.lang.Object
- implements AsyncWriteCallbackHandler
AsyncWriteCallbackHandler implementation, which is responsible
for returning cloned ByteBuffers to the pool
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketChannelOutputBuffer.AsyncWriteCallbackHandlerImpl
protected SocketChannelOutputBuffer.AsyncWriteCallbackHandlerImpl()
onWriteCompleted
public void onWriteCompleted(java.nio.channels.SelectionKey key,
AsyncQueueWriteUnit writtenRecord)
- Specified by:
onWriteCompleted in interface AsyncWriteCallbackHandler
onException
public void onException(java.lang.Exception exception,
java.nio.channels.SelectionKey key,
java.nio.ByteBuffer buffer,
java.util.Queue<AsyncQueueWriteUnit> remainingQueue)
- Specified by:
onException in interface AsyncWriteCallbackHandler
releaseAsyncWriteUnit
protected boolean releaseAsyncWriteUnit(AsyncQueueWriteUnit unit)
returnBuffer
protected boolean returnBuffer(java.nio.ByteBuffer buffer)
Copyright © 2012 Oracle Corporation. All Rights Reserved.