| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <I extends StreamSourceChannel, O extends StreamSinkChannel> void | done(I source, O sink, ChannelListener<? super I> sourceListener, ChannelListener<? super O> sinkListener)
|
| public static <I extends StreamSourceChannel, O extends StreamSinkChannel> void | initiateTransfer(final I
the source channel source, final O the target channel sink, final ChannelListener<? super I> the source listener to set and call when the transfer is complete, or sourceListener, final ChannelListener<? super O> null to clear the listener at that timethe target listener to set and call when the transfer is complete, or sinkListener, final ChannelExceptionHandler<? super I> null to clear the listener at that timethe read exception handler to call if an error occurs during a read operation readExceptionHandler, final ChannelExceptionHandler<? super O> the write exception handler to call if an error occurs during a write operation writeExceptionHandler, ByteBufferPool the pool from which the transfer buffer should be allocated pool)Initiate a low-copy transfer between two stream channels. |
| Transfer | back to summary |
|---|---|
| public Transfer() | |
| done | back to summary |
|---|---|
| private static <I extends StreamSourceChannel, O extends StreamSinkChannel> void done(I source, O sink, ChannelListener<? super I> sourceListener, ChannelListener<? super O> sinkListener) | |
| initiateTransfer | back to summary |
|---|---|
| public static <I extends StreamSourceChannel, O extends StreamSinkChannel> void initiateTransfer(final I source, final O sink, final ChannelListener<? super I> sourceListener, final ChannelListener<? super O> sinkListener, final ChannelExceptionHandler<? super I> readExceptionHandler, final ChannelExceptionHandler<? super O> writeExceptionHandler, ByteBufferPool pool) Initiate a low-copy transfer between two stream channels. The pool should be a direct buffer pool for best performance.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final ByteBufferPool | |
| private PooledByteBuffer | |
| private final ChannelExceptionHandler | |
| private final O | |
| private final ChannelListener | |
| private final I | |
| private boolean | |
| private final ChannelListener | |
| private final ChannelExceptionHandler |
| Access | Constructor and Description |
|---|---|
| pack-priv | TransferListener(ByteBufferPool pool, final PooledByteBuffer pooledBuffer, final I source, final O sink, final ChannelListener<? super I> sourceListener, final ChannelListener<? super O> sinkListener, final ChannelExceptionHandler<? super O> writeExceptionHandler, final ChannelExceptionHandler<? super I> readExceptionHandler, boolean sourceDone)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | handleEvent(final Channel
the channel event channel)Implements org. Handle the event on this channel. |
| public String |
| done | back to summary |
|---|---|
| private boolean done | |
| pool | back to summary |
|---|---|
| private final ByteBufferPool pool | |
| pooledBuffer | back to summary |
|---|---|
| private PooledByteBuffer pooledBuffer | |
| readExceptionHandler | back to summary |
|---|---|
| private final ChannelExceptionHandler<? super I> readExceptionHandler | |
| sink | back to summary |
|---|---|
| private final O sink | |
| sinkListener | back to summary |
|---|---|
| private final ChannelListener<? super O> sinkListener | |
| source | back to summary |
|---|---|
| private final I source | |
| sourceDone | back to summary |
|---|---|
| private boolean sourceDone | |
| sourceListener | back to summary |
|---|---|
| private final ChannelListener<? super I> sourceListener | |
| writeExceptionHandler | back to summary |
|---|---|
| private final ChannelExceptionHandler<? super O> writeExceptionHandler | |
| TransferListener | back to summary |
|---|---|
| pack-priv TransferListener(ByteBufferPool pool, final PooledByteBuffer pooledBuffer, final I source, final O sink, final ChannelListener<? super I> sourceListener, final ChannelListener<? super O> sinkListener, final ChannelExceptionHandler<? super O> writeExceptionHandler, final ChannelExceptionHandler<? super I> readExceptionHandler, boolean sourceDone) | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(final Channel channel) Implements org. Doc from org. Handle the event on this channel.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |