Interface AbstractNioChannel.NioUnsafe
- All Superinterfaces:
Channel.Unsafe
- All Known Implementing Classes:
AbstractNioByteChannel.NioByteUnsafe, AbstractNioChannel.AbstractNioUnsafe
- Enclosing class:
AbstractNioChannel
Special
Channel.Unsafe sub-type which allows to access the underlying SelectableChannel-
Method Summary
Modifier and TypeMethodDescriptionch()Return underlyingSelectableChannelvoidFinish connectvoidvoidread()Read from underlyingSelectableChannelMethods inherited from interface Channel.Unsafe
beginRead, bind, close, closeForcibly, connect, deregister, disconnect, flush, localAddress, outboundBuffer, recvBufAllocHandle, register, remoteAddress, voidPromise, writeModifier and TypeMethodDescriptionvoidSchedules a read operation that fills the inbound buffer of the firstChannelInboundHandlerin theChannelPipeline.voidbind(SocketAddress localAddress, ChannelPromise promise) voidclose(ChannelPromise promise) Close theChannelof theChannelPromiseand notify theChannelPromiseonce the operation was complete.voidCloses theChannelimmediately without firing any events.voidconnect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) voidderegister(ChannelPromise promise) Deregister theChannelof theChannelPromisefromEventLoopand notify theChannelPromiseonce the operation was complete.voiddisconnect(ChannelPromise promise) Disconnect theChannelof theChannelFutureand notify theChannelPromiseonce the operation was complete.voidflush()Flush out all write operations scheduled viaChannel.Unsafe.write(Object, ChannelPromise).Return theSocketAddressto which is bound local ornullif none.Returns theChannelOutboundBufferof theChannelwhere the pending write requests are stored.Return the assignedRecvByteBufAllocator.Handlewhich will be used to allocateByteBuf's when receiving data.voidregister(EventLoop eventLoop, ChannelPromise promise) Register theChannelof theChannelPromiseand notify theChannelFutureonce the registration was complete.Return theSocketAddressto which is bound remote ornullif none is bound yet.Return a special ChannelPromise which can be reused and passed to the operations inChannel.Unsafe.voidwrite(Object msg, ChannelPromise promise) Schedules a write operation.
-
Method Details
-
ch
SelectableChannel ch()Return underlyingSelectableChannel -
finishConnect
void finishConnect()Finish connect -
read
void read()Read from underlyingSelectableChannel -
forceFlush
void forceFlush()
-