Package org.redisson
Class RedissonBinaryStream.RedissonAsynchronousByteChannel
- java.lang.Object
-
- org.redisson.RedissonBinaryStream.RedissonAsynchronousByteChannel
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AsynchronousByteChannel
,AsynchronousChannel
,Channel
- Enclosing class:
- RedissonBinaryStream
public class RedissonBinaryStream.RedissonAsynchronousByteChannel extends Object implements AsynchronousByteChannel
-
-
Constructor Summary
Constructors Constructor Description RedissonAsynchronousByteChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isOpen()
long
position()
void
position(long newPosition)
Future<Integer>
read(ByteBuffer dst)
<A> void
read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
Future<Integer>
write(ByteBuffer src)
<A> void
write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
-
-
-
Method Detail
-
position
public long position()
-
position
public void position(long newPosition)
-
read
public <A> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer,? super A> handler)
- Specified by:
read
in interfaceAsynchronousByteChannel
-
read
public Future<Integer> read(ByteBuffer dst)
- Specified by:
read
in interfaceAsynchronousByteChannel
-
write
public <A> void write(ByteBuffer src, A attachment, CompletionHandler<Integer,? super A> handler)
- Specified by:
write
in interfaceAsynchronousByteChannel
-
write
public Future<Integer> write(ByteBuffer src)
- Specified by:
write
in interfaceAsynchronousByteChannel
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAsynchronousChannel
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-