Package io.netty.channel.local
Class LocalServerChannel.LocalServerUnsafe
- java.lang.Object
-
- io.netty.channel.AbstractChannel.AbstractUnsafe
-
- io.netty.channel.local.LocalServerChannel.LocalServerUnsafe
-
- All Implemented Interfaces:
Channel.Unsafe,IoHandle,LocalIoHandle,java.lang.AutoCloseable
- Enclosing class:
- LocalServerChannel
private class LocalServerChannel.LocalServerUnsafe extends AbstractChannel.AbstractUnsafe implements LocalIoHandle
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.RunnableshutdownHook
-
Constructor Summary
Constructors Modifier Constructor Description privateLocalServerUnsafe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Called once theIoHandleshould be closed.voidcloseNow()voidconnect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, ChannelPromise promise)voidhandle(IoRegistration registration, IoEvent event)Be called once there is something to handle.voidregistered()Called once thisIoHandlewas registered and so will start to receive events viaIoHandle.handle(IoRegistration, IoEvent).voidunregistered()Called once thisIoHandlewas unregistered and so will not receive any more events viaIoHandle.handle(IoRegistration, IoEvent).-
Methods inherited from class io.netty.channel.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
-
-
-
-
Method Detail
-
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.
-
handle
public void handle(IoRegistration registration, IoEvent event)
Description copied from interface:IoHandleBe called once there is something to handle.
-
connect
public void connect(java.net.SocketAddress remoteAddress, java.net.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
-
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
-
-