# Uses of Interface
org.xnio.ChannelExceptionHandler

Packages that use ChannelExceptionHandler
Package
Description
org.xnio
The main API package for XNIO.

## Uses of ChannelExceptionHandler in org.xnio

Methods in org.xnio that return ChannelExceptionHandler
Modifier and Type
Method
Description
`static ChannelExceptionHandler<Channel>`
ChannelListeners.`closingChannelExceptionHandler()`
Get a channel exception handler which closes the channel upon exception.
Methods in org.xnio with parameters of type ChannelExceptionHandler
Modifier and Type
Method
Description
`static <T extends StreamSourceChannel>
ChannelListener<T>`
ChannelListeners.`drainListener(long bytes, ChannelListener<? super T> finishListener, ChannelExceptionHandler<? super T> exceptionHandler)`
Create a channel listener which automatically drains the given number of bytes from the channel and then calls a listener.
`static <T extends StreamSourceChannel>
ChannelListener<T>`
ChannelListeners.`fileReceivingChannelListener(FileChannel target, long position, long count, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A file-receiving channel listener.
`static <T extends StreamSinkChannel>
ChannelListener<T>`
ChannelListeners.`fileSendingChannelListener(FileChannel source, long position, long count, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A file-sending channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`flushingChannelListener(ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A flushing channel listener.
`static <I extends StreamSourceChannel, O extends StreamSinkChannel>
void`
ChannelListeners.`initiateTransfer(long count, I source, O sink, ChannelListener<? super I> sourceListener, ChannelListener<? super O> sinkListener, ChannelExceptionHandler<? super I> readExceptionHandler, ChannelExceptionHandler<? super O> writeExceptionHandler, Pool<ByteBuffer> pool)`
Initiate a low-copy transfer between two stream channels.
`static <T extends Channel>
void`
ChannelListeners.`invokeChannelExceptionHandler(T channel, ChannelExceptionHandler<? super T> exceptionHandler, IOException exception)`
Safely invoke a channel exception handler, logging any errors.
`static <T extends WritableMessageChannel>
ChannelListener<T>`
ChannelListeners.`sendingChannelListener(Pooled<ByteBuffer> pooled, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A sending channel listener.
`static <T extends SuspendableWriteChannel>
ChannelListener<T>`
ChannelListeners.`writeShutdownChannelListener(ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A write shutdown channel listener.
`static <T extends StreamSinkChannel>
ChannelListener<T>`
ChannelListeners.`writingChannelListener(Pooled<ByteBuffer> pooled, ChannelListener<? super T> delegate, ChannelExceptionHandler<? super T> exceptionHandler)`
A writing channel listener.