public class AbstractAsyncSocketChannel<C extends AbstractAsyncSocketChannel<C>> extends AsynchronousSocketChannel implements AsyncByteChannel
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAsyncSocketChannel(AsynchronousSocketChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
C |
bind(SocketAddress local) |
void |
close() |
Promise<Void> |
connect(SocketAddress remote) |
<A> void |
connect(SocketAddress remote,
A attachment,
CompletionHandler<Void,? super A> handler) |
SocketAddress |
getLocalAddress() |
<T> T |
getOption(SocketOption<T> name) |
SocketAddress |
getRemoteAddress() |
boolean |
isOpen() |
Promise<Integer> |
read(ByteBuffer dst) |
<A> void |
read(ByteBuffer[] dsts,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Long,? super A> handler) |
<A> void |
read(ByteBuffer dst,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Integer,? super A> handler) |
<T> C |
setOption(SocketOption<T> name,
T value) |
C |
shutdownInput() |
C |
shutdownOutput() |
Set<SocketOption<?>> |
supportedOptions() |
Promise<Integer> |
write(ByteBuffer src) |
<A> void |
write(ByteBuffer[] srcs,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Long,? super A> handler) |
<A> void |
write(ByteBuffer src,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Integer,? super A> handler) |
open, open, provider, read, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerread, writeprotected AbstractAsyncSocketChannel(AsynchronousSocketChannel delegate)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface AsynchronousChannelclose in interface ChannelIOExceptionpublic <T> T getOption(SocketOption<T> name) throws IOException
getOption in interface NetworkChannelIOExceptionpublic Set<SocketOption<?>> supportedOptions()
supportedOptions in interface NetworkChannelpublic C bind(SocketAddress local) throws IOException
bind in interface NetworkChannelbind in class AsynchronousSocketChannelIOExceptionpublic <T> C setOption(SocketOption<T> name, T value) throws IOException
setOption in interface NetworkChannelsetOption in class AsynchronousSocketChannelIOExceptionpublic C shutdownInput() throws IOException
shutdownInput in class AsynchronousSocketChannelIOExceptionpublic C shutdownOutput() throws IOException
shutdownOutput in class AsynchronousSocketChannelIOExceptionpublic SocketAddress getRemoteAddress() throws IOException
getRemoteAddress in class AsynchronousSocketChannelIOExceptionpublic <A> void connect(SocketAddress remote, A attachment, CompletionHandler<Void,? super A> handler)
connect in class AsynchronousSocketChannelpublic Promise<Void> connect(SocketAddress remote)
connect in class AsynchronousSocketChannelpublic Promise<Integer> read(ByteBuffer dst)
read in interface AsynchronousByteChannelread in interface AsyncByteChannelread in class AsynchronousSocketChannelpublic <A> void read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
read in class AsynchronousSocketChannelpublic <A> void read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
read in class AsynchronousSocketChannelpublic Promise<Integer> write(ByteBuffer src)
write in interface AsynchronousByteChannelwrite in interface AsyncByteChannelwrite in class AsynchronousSocketChannelpublic <A> void write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler)
write in class AsynchronousSocketChannelpublic <A> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler)
write in class AsynchronousSocketChannelpublic SocketAddress getLocalAddress() throws IOException
getLocalAddress in interface NetworkChannelgetLocalAddress in class AsynchronousSocketChannelIOExceptionCopyright © 2021. All rights reserved.