Class OioSocketChannel
java.lang.Object
org.jboss.netty.channel.AbstractChannel
org.jboss.netty.channel.socket.oio.AbstractOioChannel
org.jboss.netty.channel.socket.oio.OioSocketChannel
- All Implemented Interfaces:
Comparable<Channel>, Channel, SocketChannel
- Direct Known Subclasses:
OioAcceptedSocketChannel, OioClientSocketChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocketChannelConfig(package private) final SocketFields inherited from class AbstractOioChannel
interestOpsLock, remoteAddress, worker, workerThreadFields inherited from interface Channel
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionOioSocketChannel(Channel parent, ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink, Socket socket) -
Method Summary
Modifier and TypeMethodDescription(package private) voidReturns the configuration of this channel.(package private) abstract PushbackInputStream(package private) InetSocketAddress(package private) abstract OutputStream(package private) InetSocketAddress(package private) boolean(package private) boolean(package private) booleanMethods inherited from class AbstractOioChannel
getInternalInterestOps, getLocalAddress, getRemoteAddress, isBound, isConnected, setClosed, setInternalInterestOps, writeMethods inherited from class AbstractChannel
bind, close, compareTo, connect, disconnect, equals, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getSucceededFuture, getUnsupportedOperationFuture, getUserDefinedWritability, hashCode, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUnwritable, setUserDefinedWritability, setWritable, toString, unbind, writeMethods inherited from interface Channel
bind, close, connect, disconnect, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getUserDefinedWritability, isBound, isConnected, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUserDefinedWritability, unbind, write, writeMethods inherited from interface Comparable
compareToMethods inherited from interface SocketChannel
getLocalAddress, getRemoteAddress
-
Field Details
-
socket
-
config
-
-
Constructor Details
-
OioSocketChannel
OioSocketChannel(Channel parent, ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink, Socket socket)
-
-
Method Details
-
getConfig
Description copied from interface:ChannelReturns the configuration of this channel.- Specified by:
getConfigin interfaceChannel- Specified by:
getConfigin interfaceSocketChannel
-
getInputStream
-
getOutputStream
-
isSocketBound
boolean isSocketBound()- Specified by:
isSocketBoundin classAbstractOioChannel
-
isSocketConnected
boolean isSocketConnected()- Specified by:
isSocketConnectedin classAbstractOioChannel
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddressin classAbstractOioChannel- Throws:
Exception
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddressin classAbstractOioChannel- Throws:
Exception
-
closeSocket
- Specified by:
closeSocketin classAbstractOioChannel- Throws:
IOException
-
isSocketClosed
boolean isSocketClosed()- Specified by:
isSocketClosedin classAbstractOioChannel
-