javax.rad.remote
Class ConnectionInfo

java.lang.Object
  extended by javax.rad.remote.ConnectionInfo

public class ConnectionInfo
extends Object

The ConnectionInfo holds all important connection information:

The information will be needed to communicate with any server through an IConnection implementation.

See Also:
IConnection

Constructor Summary
ConnectionInfo()
          Creates a new instance of ConnectionInfo.
ConnectionInfo(ChangedHashtable<String,Object> pProperties)
          Creates a new instance of ConnectionInfo with predefined connection properties.
 
Method Summary
 Object getConnectionId()
          Gets the connection identifier.
 long getLastCallTime()
          Gets the time in millis when the last call was sent to the server.
 ChangedHashtable<String,Object> getProperties()
          Gets the current connection properties.
 void setConnectionId(Object pConnectionId)
          Sets the connection identifier.
 void setLastCallTime(long pTime)
          Sets the time in millis when the last call was sent to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInfo

public ConnectionInfo()
Creates a new instance of ConnectionInfo.


ConnectionInfo

public ConnectionInfo(ChangedHashtable<String,Object> pProperties)
Creates a new instance of ConnectionInfo with predefined connection properties.

Parameters:
pProperties - the predefined connection properties
Method Detail

setConnectionId

public void setConnectionId(Object pConnectionId)
Sets the connection identifier.

Parameters:
pConnectionId - the connection identifier

getConnectionId

public Object getConnectionId()
Gets the connection identifier.

Returns:
the connection identifier or null if the connection is not established

getProperties

public ChangedHashtable<String,Object> getProperties()
Gets the current connection properties.

Returns:
the current connection properties

setLastCallTime

public void setLastCallTime(long pTime)
Sets the time in millis when the last call was sent to the server.

Parameters:
pTime - the time in millis

getLastCallTime

public long getLastCallTime()
Gets the time in millis when the last call was sent to the server.

Returns:
the time in millis, or -1 if no call was sent


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.