org.jboss.xnio.helpers
Class XnioController<T extends java.io.Closeable>

java.lang.Object
  extended by org.jboss.xnio.helpers.XnioController<T>

public final class XnioController<T extends java.io.Closeable>
extends java.lang.Object


Method Summary
 T getHandle()
           
 void setBacklog(java.lang.Integer backlog)
           
 void setBroadcast(java.lang.Boolean broadcast)
           
 void setCloseAbort(java.lang.Boolean closeAbort)
           
 void setIpTrafficClass(java.lang.Integer ipTrafficClass)
           
 void setKeepAlive(java.lang.Boolean keepAlive)
           
 void setManageConnections(java.lang.Boolean manageConnections)
           
 void setMulticastTtl(java.lang.Integer multicastTtl)
           
 void setOobInline(java.lang.Boolean oobInline)
           
 void setReceiveBufferSize(java.lang.Integer receiveBufferSize)
           
 void setReuseAddresses(java.lang.Boolean reuseAddresses)
           
 void setSendBufferSize(java.lang.Integer sendBufferSize)
           
 void setTcpNoDelay(java.lang.Boolean tcpNoDelay)
           
 void start()
           
 void stop()
           
static XnioController<org.jboss.xnio.CloseableTcpConnector> tcpConnector(org.jboss.xnio.Xnio xnio)
           
static XnioController<org.jboss.xnio.CloseableTcpConnector> tcpConnector(org.jboss.xnio.Xnio xnio, java.util.concurrent.Executor executor)
           
static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.BoundChannel<java.net.SocketAddress>>> tcpServer(org.jboss.xnio.Xnio xnio, java.util.concurrent.Executor executor, org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.TcpChannel> handlerFactory, java.net.SocketAddress[] bindAddresses)
           
static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.BoundChannel<java.net.SocketAddress>>> tcpServer(org.jboss.xnio.Xnio xnio, org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.TcpChannel> handlerFactory, java.net.SocketAddress[] bindAddresses)
           
static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.UdpChannel>> udpServer(org.jboss.xnio.Xnio xnio, boolean multicast, org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.UdpChannel> handlerFactory, java.net.SocketAddress[] bindAddresses)
           
static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.UdpChannel>> udpServer(org.jboss.xnio.Xnio xnio, java.util.concurrent.Executor executor, boolean multicast, org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.UdpChannel> handlerFactory, java.net.SocketAddress[] bindAddresses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stop

public void stop()

start

public void start()
           throws java.io.IOException
Throws:
java.io.IOException

getHandle

public T getHandle()

setBacklog

public void setBacklog(java.lang.Integer backlog)
                throws java.io.IOException
Throws:
java.io.IOException

setBroadcast

public void setBroadcast(java.lang.Boolean broadcast)
                  throws java.io.IOException
Throws:
java.io.IOException

setCloseAbort

public void setCloseAbort(java.lang.Boolean closeAbort)
                   throws java.io.IOException
Throws:
java.io.IOException

setIpTrafficClass

public void setIpTrafficClass(java.lang.Integer ipTrafficClass)
                       throws java.io.IOException
Throws:
java.io.IOException

setKeepAlive

public void setKeepAlive(java.lang.Boolean keepAlive)
                  throws java.io.IOException
Throws:
java.io.IOException

setManageConnections

public void setManageConnections(java.lang.Boolean manageConnections)
                          throws java.io.IOException
Throws:
java.io.IOException

setMulticastTtl

public void setMulticastTtl(java.lang.Integer multicastTtl)
                     throws java.io.IOException
Throws:
java.io.IOException

setOobInline

public void setOobInline(java.lang.Boolean oobInline)
                  throws java.io.IOException
Throws:
java.io.IOException

setReceiveBufferSize

public void setReceiveBufferSize(java.lang.Integer receiveBufferSize)
                          throws java.io.IOException
Throws:
java.io.IOException

setReuseAddresses

public void setReuseAddresses(java.lang.Boolean reuseAddresses)
                       throws java.io.IOException
Throws:
java.io.IOException

setSendBufferSize

public void setSendBufferSize(java.lang.Integer sendBufferSize)
                       throws java.io.IOException
Throws:
java.io.IOException

setTcpNoDelay

public void setTcpNoDelay(java.lang.Boolean tcpNoDelay)
                   throws java.io.IOException
Throws:
java.io.IOException

tcpServer

public static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.BoundChannel<java.net.SocketAddress>>> tcpServer(org.jboss.xnio.Xnio xnio,
                                                                                                                                                                 org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.TcpChannel> handlerFactory,
                                                                                                                                                                 java.net.SocketAddress[] bindAddresses)

tcpServer

public static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.BoundChannel<java.net.SocketAddress>>> tcpServer(org.jboss.xnio.Xnio xnio,
                                                                                                                                                                 java.util.concurrent.Executor executor,
                                                                                                                                                                 org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.TcpChannel> handlerFactory,
                                                                                                                                                                 java.net.SocketAddress[] bindAddresses)

udpServer

public static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.UdpChannel>> udpServer(org.jboss.xnio.Xnio xnio,
                                                                                                                                       boolean multicast,
                                                                                                                                       org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.UdpChannel> handlerFactory,
                                                                                                                                       java.net.SocketAddress[] bindAddresses)

udpServer

public static XnioController<org.jboss.xnio.channels.BoundServer<java.net.SocketAddress,org.jboss.xnio.channels.UdpChannel>> udpServer(org.jboss.xnio.Xnio xnio,
                                                                                                                                       java.util.concurrent.Executor executor,
                                                                                                                                       boolean multicast,
                                                                                                                                       org.jboss.xnio.IoHandlerFactory<? super org.jboss.xnio.channels.UdpChannel> handlerFactory,
                                                                                                                                       java.net.SocketAddress[] bindAddresses)

tcpConnector

public static XnioController<org.jboss.xnio.CloseableTcpConnector> tcpConnector(org.jboss.xnio.Xnio xnio)

tcpConnector

public static XnioController<org.jboss.xnio.CloseableTcpConnector> tcpConnector(org.jboss.xnio.Xnio xnio,
                                                                                java.util.concurrent.Executor executor)


Copyright © 2009. All Rights Reserved.