public class Server extends LifeCycleThread
| Constructor and Description |
|---|
Server() |
Server(ByteBufferPool pool,
InetAddrPort address) |
Server(ByteBufferPool pool,
java.net.InetSocketAddress address) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Connection connection) |
ByteBufferPool |
getBufferPool() |
java.net.InetSocketAddress |
getInetSocketAddress() |
void |
loop() |
void |
setBufferPool(ByteBufferPool bufferPool) |
void |
setInetSocketAddress(java.net.InetSocketAddress address) |
void |
start()
Start the LifeCycle.
|
public Server()
throws java.io.IOException
java.io.IOExceptionpublic Server(ByteBufferPool pool, java.net.InetSocketAddress address) throws java.io.IOException
java.io.IOExceptionpublic Server(ByteBufferPool pool, InetAddrPort address) throws java.io.IOException
java.io.IOExceptionpublic java.net.InetSocketAddress getInetSocketAddress()
public void setInetSocketAddress(java.net.InetSocketAddress address)
public ByteBufferPool getBufferPool()
public void setBufferPool(ByteBufferPool bufferPool)
public void connect(Connection connection) throws java.io.IOException
java.io.IOExceptionpublic void start()
throws java.lang.Exception
LifeCyclestart in interface LifeCyclestart in class LifeCycleThreadjava.lang.Exception - An arbitrary exception may be thrown.public void loop()
throws java.lang.Exception
loop in class LifeCycleThreadjava.lang.InterruptedExceptionjava.io.InterruptedIOExceptionjava.lang.ExceptionCopyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.