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
      boolean isFileChannel()  
      <A> void read​(java.nio.ByteBuffer dst, long position, A attach, java.nio.channels.CompletionHandler<java.lang.Integer,​? super A> handler)  
      static AsyncChannel wrap​(java.nio.channels.AsynchronousChannel channel)  
      java.nio.channels.AsynchronousChannel wrapped()  
      <A> void write​(java.nio.ByteBuffer src, long position, A attach, java.nio.channels.CompletionHandler<java.lang.Integer,​? super A> handler)  
      • Methods inherited from interface java.nio.channels.AsynchronousChannel

        close
      • Methods inherited from interface java.nio.channels.Channel

        isOpen
    • 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)