Package org.elasticsearch.nio
Interface WriteOperation
- All Known Implementing Classes:
FlushReadyWrite
public interface WriteOperation
This is a basic write operation that can be queued with a channel. The only requirements of a write
operation is that is has a listener and a reference to its channel. The actual conversion of the write
operation implementation to bytes will be performed by the
NioChannelHandler.-
Method Summary
Modifier and Type Method Description SocketChannelContextgetChannel()java.util.function.BiConsumer<java.lang.Void,java.lang.Exception>getListener()java.lang.ObjectgetObject()
-
Method Details
-
getListener
java.util.function.BiConsumer<java.lang.Void,java.lang.Exception> getListener() -
getChannel
SocketChannelContext getChannel() -
getObject
java.lang.Object getObject()
-