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 RemoteSessionInterface
public void objectsFinalized(int[] guids)
objectsFinalized
in interface RemoteSessionInterface
public void updateObjectsWithoutHubs(Class c, OAObjectKey ok, boolean bIsInHub)
updateObjectsWithoutHubs
in interface RemoteSessionInterface
public void saveCache(OACascade cascade, int iCascadeRule)
public void clearCaches()
public boolean setLock(Class objectClass, OAObjectKey objectKey, boolean bLock)
setLock
in interface RemoteSessionInterface
public void setLock(OAObject obj, boolean bLock)
public void clearLocks()
public boolean isLockedByThisClient(Class objectClass, OAObjectKey objectKey)
isLockedByThisClient
in interface RemoteSessionInterface
public String ping(String msg)
ping
in interface RemoteSessionInterface
public void ping2(String msg)
ping2
in interface RemoteSessionInterface
public abstract boolean isLocked(Class objectClass, OAObjectKey objectKey)
isLocked
in interface RemoteSessionInterface
public abstract boolean isLockedByAnotherClient(Class objectClass, OAObjectKey objectKey)
isLockedByAnotherClient
in interface RemoteSessionInterface
public abstract void sendException(String msg, Throwable ex)
sendException
in interface RemoteSessionInterface
public void update(ClientInfo ci)
update
in interface RemoteSessionInterface
Copyright © 1999–2025 ViaOA. All rights reserved.