Package org.miaixz.bus.socket.channel
Class SslAsynchronousSocketChannel
java.lang.Object
java.nio.channels.AsynchronousSocketChannel
org.miaixz.bus.socket.channel.AsynchronousSocketChannelProxy
org.miaixz.bus.socket.channel.SslAsynchronousSocketChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,AsynchronousByteChannel,AsynchronousChannel,Channel,NetworkChannel
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields inherited from class org.miaixz.bus.socket.channel.AsynchronousSocketChannelProxy
asynchronousSocketChannel -
Constructor Summary
ConstructorsConstructorDescriptionSslAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel, SslService sslService, BufferPage bufferPage) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()read(ByteBuffer dst) <A> voidread(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) <A> voidread(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, ? super A> handler) write(ByteBuffer src) <A> voidwrite(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) <A> voidwrite(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, ? super A> handler) Methods inherited from class org.miaixz.bus.socket.channel.AsynchronousSocketChannelProxy
bind, connect, connect, getLocalAddress, getOption, getRemoteAddress, isOpen, setOption, shutdownInput, shutdownOutput, supportedOptions
-
Constructor Details
-
SslAsynchronousSocketChannel
public SslAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel, SslService sslService, BufferPage bufferPage)
-
-
Method Details
-
read
public <A> void read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, ? super A> handler) - Overrides:
readin classAsynchronousSocketChannelProxy
-
read
- Specified by:
readin interfaceAsynchronousByteChannel- Overrides:
readin classAsynchronousSocketChannelProxy
-
read
public <A> void read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) - Overrides:
readin classAsynchronousSocketChannelProxy
-
write
public <A> void write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, ? super A> handler) - Overrides:
writein classAsynchronousSocketChannelProxy
-
write
- Specified by:
writein interfaceAsynchronousByteChannel- Overrides:
writein classAsynchronousSocketChannelProxy
-
write
public <A> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) - Overrides:
writein classAsynchronousSocketChannelProxy
-
close
- Specified by:
closein interfaceAsynchronousChannel- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Overrides:
closein classAsynchronousSocketChannelProxy- Throws:
IOException
-