com.jproxy.proxy
Class HashObject

java.lang.Object
  |
  +--com.jproxy.proxy.HashObject

public class HashObject
extends java.lang.Object

The wraper for remote objects for its lifetime management by ProxyHashtable

See Also:
Invocator, com.jproxy.proxy.InvocatorHashtable, ProxyHashtable

Field Summary
 long birthday
          A time in mills when object was hashed.
static long defaultTTL
          The default time-to-live for hashed object.
 boolean isLinkable
           
 long lastAccessTime
          latest time when hashed object was accesed
 java.lang.Object object
          The hashed object
 java.lang.Object proxyObject
          The stub for remote object
 java.lang.String[] remoteInterfaces
          The remote interface name
 java.util.Vector sessionIds
          The session IDs owning the object
 long timeToLive
          The time-to-live for hashed object.
 
Constructor Summary
HashObject(java.lang.Object obj, long sessionId)
          Constructs HashObject for given remote obj.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultTTL

public static long defaultTTL
The default time-to-live for hashed object.

lastAccessTime

public long lastAccessTime
latest time when hashed object was accesed

timeToLive

public long timeToLive
The time-to-live for hashed object. If during the time were no access to object then object will be destroyed.

birthday

public long birthday
A time in mills when object was hashed.

object

public java.lang.Object object
The hashed object

sessionIds

public java.util.Vector sessionIds
The session IDs owning the object

remoteInterfaces

public java.lang.String[] remoteInterfaces
The remote interface name

proxyObject

public java.lang.Object proxyObject
The stub for remote object

isLinkable

public boolean isLinkable
Constructor Detail

HashObject

public HashObject(java.lang.Object obj,
                  long sessionId)
Constructs HashObject for given remote obj. The unique objectId is generated after new instance is obtained.
Parameters:
obj - object that has to be hashed
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright ⌐ JProxy LLC. All Rights Reserved.