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.IOException
public Server(ByteBufferPool pool, java.net.InetSocketAddress address) throws java.io.IOException
java.io.IOException
public Server(ByteBufferPool pool, InetAddrPort address) throws java.io.IOException
java.io.IOException
public 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.IOException
public void start() throws java.lang.Exception
LifeCycle
start
in interface LifeCycle
start
in class LifeCycleThread
java.lang.Exception
- An arbitrary exception may be thrown.public void loop() throws java.lang.Exception
loop
in class LifeCycleThread
java.lang.InterruptedException
java.io.InterruptedIOException
java.lang.Exception
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.