Package com.emc.mongoose.base.item.io
Interface AsyncChannel
-
- All Superinterfaces:
java.nio.channels.AsynchronousChannel,java.lang.AutoCloseable,java.nio.channels.Channel,java.io.Closeable
- All Known Implementing Classes:
AsyncChannelWrapper
public interface AsyncChannel extends java.nio.channels.AsynchronousChannel
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisFileChannel()<A> voidread(java.nio.ByteBuffer dst, long position, A attach, java.nio.channels.CompletionHandler<java.lang.Integer,? super A> handler)static AsyncChannelwrap(java.nio.channels.AsynchronousChannel channel)java.nio.channels.AsynchronousChannelwrapped()<A> voidwrite(java.nio.ByteBuffer src, long position, A attach, java.nio.channels.CompletionHandler<java.lang.Integer,? super A> handler)
-
-
-
Method Detail
-
isFileChannel
boolean isFileChannel()
-
wrapped
java.nio.channels.AsynchronousChannel wrapped()
-
read
<A> void read(java.nio.ByteBuffer dst, long position, A attach, java.nio.channels.CompletionHandler<java.lang.Integer,? super A> handler)
-
write
<A> void write(java.nio.ByteBuffer src, long position, A attach, java.nio.channels.CompletionHandler<java.lang.Integer,? super A> handler)
-
wrap
static AsyncChannel wrap(java.nio.channels.AsynchronousChannel channel)
-
-