Class LocalChannel.LocalUnsafe
java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.local.LocalChannel.LocalUnsafe
- All Implemented Interfaces:
Channel.Unsafe, IoHandle, LocalIoHandle, AutoCloseable
- Enclosing class:
LocalChannel
private class LocalChannel.LocalUnsafe
extends AbstractChannel.AbstractUnsafe
implements LocalIoHandle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called once theIoHandleshould be closed.voidcloseNow()voidconnect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) voidhandle(IoRegistration registration, IoEvent event) Be called once there is something to handle.voidCalled once thisIoHandlewas registered and so will start to receive events viaIoHandle.handle(IoRegistration, IoEvent).voidCalled once thisIoHandlewas unregistered and so will not receive any more events viaIoHandle.handle(IoRegistration, IoEvent).Methods inherited from class AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, flush0, handleWriteError, localAddress, outboundBuffer, prepareToClose, recvBufAllocHandle, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, write
-
Field Details
-
shutdownHook
-
-
Constructor Details
-
LocalUnsafe
private LocalUnsafe()
-
-
Method Details
-
close
public void close()Description copied from interface:IoHandleCalled once theIoHandleshould be closed. Even once this method is called this handle might still receive events viaIoHandle.handle(IoRegistration, IoEvent)(if it was previous be registered and so itsIoHandle.registered()method was called) until theIoHandle.unregistered()method is called.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIoHandle
-
handle
Description copied from interface:IoHandleBe called once there is something to handle. -
registered
public void registered()Description copied from interface:IoHandleCalled once thisIoHandlewas registered and so will start to receive events viaIoHandle.handle(IoRegistration, IoEvent).- Specified by:
registeredin interfaceIoHandle
-
unregistered
public void unregistered()Description copied from interface:IoHandleCalled once thisIoHandlewas unregistered and so will not receive any more events viaIoHandle.handle(IoRegistration, IoEvent).- Specified by:
unregisteredin interfaceIoHandle
-
closeNow
public void closeNow()- Specified by:
closeNowin interfaceLocalIoHandle
-
connect
public void connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) Description copied from interface:Channel.UnsafeConnect theChannelof the givenChannelFuturewith the given remoteSocketAddress. If a specific localSocketAddressshould be used it need to be given as argument. Otherwise just passnullto it. TheChannelPromisewill get notified once the connect operation was complete.- Specified by:
connectin interfaceChannel.Unsafe
-