JavaScript is disabled on your browser.
XNIO API 3.0.17.GA-redhat-13.0.17.GA-redhat-1
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
All Superinterfaces:
java.lang.AutoCloseable, java.nio.channels.Channel, java.io.Closeable, Configurable , java.nio.channels.InterruptibleChannel
All Known Subinterfaces:
AcceptingChannel <C>, BoundChannel , BoundMultipointMessageChannel , BoundServerChannel , ConnectedChannel , ConnectedMessageChannel , ConnectedSslStreamChannel , ConnectedStreamChannel , MessageChannel , MulticastMessageChannel , MultipointMessageChannel , ReadableMessageChannel , ReadableMultipointMessageChannel , SimpleAcceptingChannel <C>, SslChannel , StreamChannel , StreamSinkChannel , StreamSourceChannel , SuspendableAcceptChannel , SuspendableChannel , SuspendableReadChannel , SuspendableWriteChannel , WritableMessageChannel , WritableMultipointMessageChannel
All Known Implementing Classes:
FramedMessageChannel , TranslatingSuspendableChannel
public interface CloseableChannel
extends java.nio.channels.InterruptibleChannel, Configurable
A channel which is closeable. A listener may be registered which is triggered (only once) on channel close.
Since:
2.0
Method Summary
Methods inherited from interface java.nio.channels.Channel
isOpen
Method Detail
getCloseSetter
ChannelListener.Setter <? extends CloseableChannel > getCloseSetter()
Get the setter which can be used to change the close listener for this channel. If the channel is already
closed, then the listener will not be called.
Returns: the setter
close
void close()
throws java.io.IOException
Close this channel. When a channel is closed, its close listener is invoked. Invoking this method
more than once has no additional effect.
Specified by:
close
in interface java.lang.AutoCloseable
Specified by:
close
in interface java.nio.channels.Channel
Specified by:
close
in interface java.io.Closeable
Specified by:
close
in interface java.nio.channels.InterruptibleChannel
Throws:
java.io.IOException
- if the close failed
XNIO API 3.0.17.GA-redhat-13.0.17.GA-redhat-1
Summary:
Nested |
Field |
Constr |
Method
Detail:
Field |
Constr |
Method
Copyright © 2010 JBoss, a division of Red Hat, Inc.