net.anotheria.net.tcp.server.object2object
Class O2OConnection

java.lang.Object
  extended by net.anotheria.net.shared.server.AbstractConnection
      extended by net.anotheria.net.tcp.server.AbstractTCPConnection
          extended by net.anotheria.net.tcp.server.object2object.O2OConnection
All Implemented Interfaces:
Runnable, IConnection

public class O2OConnection
extends AbstractTCPConnection

A connection to exchange objects via an underlying tcp connection.

Author:
lrosenberg

Method Summary
 boolean isKeepAlive()
          Returns the value of the keepalive attribute.
 void run()
           
 void setKeepAlive(boolean aKeepAlive)
          Sets the value of the keepalive attribute.
 
Methods inherited from class net.anotheria.net.tcp.server.AbstractTCPConnection
close, getSocket, open, setSocket
 
Methods inherited from class net.anotheria.net.shared.server.AbstractConnection
addConnectionListener, removeConnectionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()

isKeepAlive

public boolean isKeepAlive()
Returns the value of the keepalive attribute.

Returns:
true if the connection should be keepalived between requests.

setKeepAlive

public void setKeepAlive(boolean aKeepAlive)
Sets the value of the keepalive attribute.

Parameters:
keepAlive - the new value to set.


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