net.gleamynode.netty.channel
Interface Channel

All Known Subinterfaces:
ServerSocketChannel, SocketChannel
All Known Implementing Classes:
AbstractChannel, AbstractServerChannel

public interface Channel

Version:
$Rev$, $Date$
Author:
The Netty Project (netty@googlegroups.com), Trustin Lee (trustin@gmail.com)

Field Summary
static int OP_NONE
           
static int OP_READ
           
static int OP_READ_WRITE
           
static int OP_WRITE
           
 
Method Summary
 ChannelFuture bind(SocketAddress localAddress)
           
 ChannelFuture close()
           
 ChannelFuture connect(SocketAddress remoteAddress)
           
 ChannelFuture disconnect()
           
 ChannelConfig getConfig()
           
 ChannelFactory getFactory()
           
 UUID getId()
           
 int getInterestOps()
           
 SocketAddress getLocalAddress()
           
 Channel getParent()
           
 ChannelPipeline getPipeline()
           
 SocketAddress getRemoteAddress()
           
 boolean isBound()
           
 boolean isConnected()
           
 boolean isOpen()
           
 boolean isReadable()
           
 boolean isWritable()
           
 ChannelFuture setInterestOps(int interestOps)
           
 ChannelFuture setReadable(boolean readable)
           
 ChannelFuture write(Object message)
           
 ChannelFuture write(Object message, SocketAddress remoteAddress)
           
 

Field Detail

OP_NONE

static final int OP_NONE
See Also:
Constant Field Values

OP_READ

static final int OP_READ
See Also:
Constant Field Values

OP_WRITE

static final int OP_WRITE
See Also:
Constant Field Values

OP_READ_WRITE

static final int OP_READ_WRITE
See Also:
Constant Field Values
Method Detail

getId

UUID getId()

getFactory

ChannelFactory getFactory()

getParent

Channel getParent()

getConfig

ChannelConfig getConfig()

getPipeline

ChannelPipeline getPipeline()

isOpen

boolean isOpen()

isBound

boolean isBound()

isConnected

boolean isConnected()

getLocalAddress

SocketAddress getLocalAddress()

getRemoteAddress

SocketAddress getRemoteAddress()

write

ChannelFuture write(Object message)

write

ChannelFuture write(Object message,
                    SocketAddress remoteAddress)

bind

ChannelFuture bind(SocketAddress localAddress)

connect

ChannelFuture connect(SocketAddress remoteAddress)

disconnect

ChannelFuture disconnect()

close

ChannelFuture close()

getInterestOps

int getInterestOps()

isReadable

boolean isReadable()

isWritable

boolean isWritable()

setInterestOps

ChannelFuture setInterestOps(int interestOps)

setReadable

ChannelFuture setReadable(boolean readable)


Copyright © 2008-Present Trustin Heuiseung Lee. All Rights Reserved.