-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.ByteChannel,java.nio.channels.Channel,java.nio.channels.GatheringByteChannel,java.nio.channels.InterruptibleChannel,java.nio.channels.NetworkChannel,java.nio.channels.ReadableByteChannel,java.nio.channels.ScatteringByteChannel,java.nio.channels.WritableByteChannel,org.openziti.util.Logged
public final class SyncSocketChannel extends SocketChannel implements Logged
-
-
Constructor Summary
Constructors Constructor Description SyncSocketChannel(SelectorProvider provider)
-
Method Summary
Modifier and Type Method Description Integerread(ByteBuffer dst)Longread(Array<out ByteBuffer> dsts, Integer offset, Integer length)Integerwrite(ByteBuffer src)Longwrite(Array<out ByteBuffer> srcs, Integer offset, Integer length)SocketChannelbind(SocketAddress local)SocketAddressgetLocalAddress()<T extends Any> SocketChannelsetOption(SocketOption<T> name, T value)<T extends Any> TgetOption(SocketOption<T> name)Set<SocketOption<?>>supportedOptions()SocketChannelshutdownInput()SocketChannelshutdownOutput()Socketsocket()BooleanisConnected()BooleanisConnectionPending()Booleanconnect(SocketAddress addr)BooleanfinishConnect()SocketAddressgetRemoteAddress()-
Methods inherited from class org.openziti.net.nio.SyncSocketChannel
d, d, e, e, e, e, i, i, read, t, t, v, v, validOps, w, w, write -
Methods inherited from class java.nio.channels.SelectableChannel
begin, close, end, isOpen -
Methods inherited from class java.nio.channels.SocketChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register, removeKey -
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
register -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SyncSocketChannel
SyncSocketChannel(SelectorProvider provider)
-
-
Method Detail
-
read
Integer read(ByteBuffer dst)
-
write
Integer write(ByteBuffer src)
-
bind
SocketChannel bind(SocketAddress local)
-
getLocalAddress
SocketAddress getLocalAddress()
-
setOption
<T extends Any> SocketChannel setOption(SocketOption<T> name, T value)
-
getOption
<T extends Any> T getOption(SocketOption<T> name)
-
supportedOptions
Set<SocketOption<?>> supportedOptions()
-
shutdownInput
SocketChannel shutdownInput()
-
shutdownOutput
SocketChannel shutdownOutput()
-
isConnected
Boolean isConnected()
-
isConnectionPending
Boolean isConnectionPending()
-
connect
Boolean connect(SocketAddress addr)
-
finishConnect
Boolean finishConnect()
-
getRemoteAddress
SocketAddress getRemoteAddress()
-
-
-
-