net.anotheria.net.tcp.server.object2object
Class O2OServer

java.lang.Object
  extended by net.anotheria.net.shared.server.AbstractServer
      extended by net.anotheria.net.tcp.server.BasicTCPServer
          extended by net.anotheria.net.tcp.server.object2object.O2OServer
All Implemented Interfaces:
Runnable, IServer

public class O2OServer
extends BasicTCPServer

An object2object server implementation. This is a server which is capable of exchanging serializeable objects via tcp.

Author:
lrosenberg

Constructor Summary
O2OServer(int port, boolean keepAlive, IO2OWorkerFactory workerFactory)
          Creates a new O2OServer.
 
Method Summary
 
Methods inherited from class net.anotheria.net.tcp.server.BasicTCPServer
isRunning, run, setRunning, startServer, stopServer
 
Methods inherited from class net.anotheria.net.shared.server.AbstractServer
addServerListener, getConnectionFactory, notifyConnectionCreated, notifyConnectionRemoved, removeServerListener, setConnectionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

O2OServer

public O2OServer(int port,
                 boolean keepAlive,
                 IO2OWorkerFactory workerFactory)
Creates a new O2OServer.

Parameters:
port - the port to listen to.
keepAlive - whether the connections have to be keepalived.
workerFactory - the factory to be used for workers.


Copyright © 2010-2013 anotheria.net. All Rights Reserved.