public abstract class RemoteSessionImpl extends Object implements RemoteSessionInterface
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<OAObject,OAObject> |
hashLock |
protected Map<Integer,Boolean> |
hmGuid
List of guids that are on the client.
|
protected ConcurrentHashMap<Integer,OAObject> |
hmObjectsWithoutHubs |
protected int |
sessionId |
| Constructor and Description |
|---|
RemoteSessionImpl(int sessionId,
Map<Integer,Boolean> hmGuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCaches() |
void |
clearLocks() |
OAObject |
createNewObject(Class clazz) |
abstract boolean |
isLocked(Class objectClass,
OAObjectKey objectKey) |
abstract boolean |
isLockedByAnotherClient(Class objectClass,
OAObjectKey objectKey) |
boolean |
isLockedByThisClient(Class objectClass,
OAObjectKey objectKey) |
void |
objectCreated(int guid)
Add to guid to cache, to know what objects are on client.
|
void |
objectsFinalized(int[] guids)
Called by client side OAObject.finalize, to remove the guids from hmGuid/Cache.
|
String |
ping(String msg) |
void |
ping2(String msg) |
void |
saveCache(OACascade cascade,
int iCascadeRule) |
abstract void |
sendException(String msg,
Throwable ex) |
boolean |
setLock(Class objectClass,
OAObjectKey objectKey,
boolean bLock) |
void |
setLock(OAObject obj,
boolean bLock) |
void |
update(ClientInfo ci) |
void |
updateObjectsWithoutHubs(Class c,
OAObjectKey ok,
boolean bIsInHub)
Used to manage OAObject on client to make sure that they are not GCd on Server.
|
protected final int sessionId
protected final Map<Integer,Boolean> hmGuid
protected final ConcurrentHashMap<OAObject,OAObject> hashLock
protected final ConcurrentHashMap<Integer,OAObject> hmObjectsWithoutHubs
public void objectCreated(int guid)
objectCreated in interface RemoteSessionInterfacepublic void objectsFinalized(int[] guids)
objectsFinalized in interface RemoteSessionInterfacepublic void updateObjectsWithoutHubs(Class c, OAObjectKey ok, boolean bIsInHub)
updateObjectsWithoutHubs in interface RemoteSessionInterfacepublic void saveCache(OACascade cascade, int iCascadeRule)
public void clearCaches()
public boolean setLock(Class objectClass, OAObjectKey objectKey, boolean bLock)
setLock in interface RemoteSessionInterfacepublic void setLock(OAObject obj, boolean bLock)
public void clearLocks()
public boolean isLockedByThisClient(Class objectClass, OAObjectKey objectKey)
isLockedByThisClient in interface RemoteSessionInterfacepublic String ping(String msg)
ping in interface RemoteSessionInterfacepublic void ping2(String msg)
ping2 in interface RemoteSessionInterfacepublic abstract boolean isLocked(Class objectClass, OAObjectKey objectKey)
isLocked in interface RemoteSessionInterfacepublic abstract boolean isLockedByAnotherClient(Class objectClass, OAObjectKey objectKey)
isLockedByAnotherClient in interface RemoteSessionInterfacepublic abstract void sendException(String msg, Throwable ex)
sendException in interface RemoteSessionInterfacepublic void update(ClientInfo ci)
update in interface RemoteSessionInterfaceCopyright © 1999–2025 ViaOA. All rights reserved.