public interface ISocketChannel extends Closeable
Modifier and Type | Field and Description |
---|---|
static boolean |
FAST_JAVA8_IO |
Modifier and Type | Method and Description |
---|---|
void |
configureBlocking(boolean blocking) |
@NotNull InetSocketAddress |
getLocalAddress() |
@NotNull InetSocketAddress |
getRemoteAddress() |
boolean |
isBlocking() |
static boolean |
isFastJava8IO() |
boolean |
isOpen() |
int |
read(ByteBuffer byteBuffer) |
@NotNull Socket |
socket() |
@NotNull SocketChannel |
socketChannel() |
static @NotNull ISocketChannel |
wrap(SocketChannel sc) |
static @NotNull ISocketChannel |
wrapUnsafe(SocketChannel sc) |
int |
write(ByteBuffer byteBuffer) |
long |
write(ByteBuffer[] byteBuffer) |
static boolean isFastJava8IO()
@NotNull static @NotNull ISocketChannel wrap(SocketChannel sc)
@NotNull static @NotNull ISocketChannel wrapUnsafe(SocketChannel sc)
@NotNull @NotNull SocketChannel socketChannel()
int read(ByteBuffer byteBuffer) throws IOException
IOException
int write(ByteBuffer byteBuffer) throws IOException
IOException
long write(ByteBuffer[] byteBuffer) throws IOException
IOException
@NotNull @NotNull Socket socket()
void configureBlocking(boolean blocking) throws IOException
IOException
@NotNull @NotNull InetSocketAddress getRemoteAddress() throws IORuntimeException
IORuntimeException
@NotNull @NotNull InetSocketAddress getLocalAddress() throws IORuntimeException
IORuntimeException
boolean isOpen()
boolean isBlocking()
Copyright © 2020. All rights reserved.