- All Superinterfaces:
AFSomeSocketThing
,AutoCloseable
,Channel
,Closeable
,FileDescriptorAccess
,InterruptibleChannel
- All Known Implementing Classes:
AFDatagramChannel
,AFServerSocketChannel
,AFSocketChannel
,AFUNIXDatagramChannel
,AFUNIXServerSocketChannel
,AFUNIXSocketChannel
public interface AFSomeSocketChannel
extends InterruptibleChannel, FileDescriptorAccess, AFSomeSocketThing
Marker interface that combines junixsocket-based
SocketChannel
s, DatagramChannel
s
or ServerSocketChannel
s.- Author:
- Christian Kohlschütter
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconfigureBlocking
(boolean block) Adjusts this channel's blocking mode.boolean
Checks if the channel is configured blocking.Methods inherited from interface org.newsclub.net.unix.AFSomeSocketThing
getLocalSocketAddress, setShutdownOnClose
Methods inherited from interface org.newsclub.net.unix.FileDescriptorAccess
getFileDescriptor
Methods inherited from interface java.nio.channels.InterruptibleChannel
close
-
Method Details
-
isBlocking
boolean isBlocking()Checks if the channel is configured blocking. The result may be cached, and therefore not invoke native code to check if the underlying socket is actually configured that way.- Returns:
true
if blocking.
-
configureBlocking
Adjusts this channel's blocking mode.If the given blocking mode is different from the currently cached blocking mode then this method native code to change it.
- Parameters:
block
-true
if blocking is desired.- Returns:
- This channel.
- Throws:
IOException
- on error.
-