net.anotheria.net.shared.server
Class AbstractConnection

java.lang.Object
  extended by net.anotheria.net.shared.server.AbstractConnection
All Implemented Interfaces:
IConnection
Direct Known Subclasses:
AbstractTCPConnection, O2OClientConnection

public abstract class AbstractConnection
extends Object
implements IConnection

Base class for IConnection implementations.

Author:
lrosenberg

Constructor Summary
protected AbstractConnection()
          Creates a new abstract connection with an empty listeners list.
 
Method Summary
 void addConnectionListener(IConnectionListener listener)
          Adds a connection listeners.
 void close()
          Closes a conection.
 void open()
          Opens a connection.
 void removeConnectionListener(IConnectionListener listener)
          Removes the given connection listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConnection

protected AbstractConnection()
Creates a new abstract connection with an empty listeners list.

Method Detail

addConnectionListener

public void addConnectionListener(IConnectionListener listener)
Description copied from interface: IConnection
Adds a connection listeners.

Specified by:
addConnectionListener in interface IConnection
Parameters:
listener - the listener to add

close

public void close()
Description copied from interface: IConnection
Closes a conection.

Specified by:
close in interface IConnection

open

public void open()
Description copied from interface: IConnection
Opens a connection.

Specified by:
open in interface IConnection

removeConnectionListener

public void removeConnectionListener(IConnectionListener listener)
Description copied from interface: IConnection
Removes the given connection listener.

Specified by:
removeConnectionListener in interface IConnection
Parameters:
listener - the listener to remove


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