com.jproxy.proxy
Class HashObject

java.lang.Object
  extended bycom.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
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
 long objectId
          A time in mills when object was hashed.
 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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, 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.


objectId

public long objectId
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)

toString

public java.lang.String toString()


Copyright © JProxy LLC. All Rights Reserved.