public abstract class RemoteSessionImpl extends Object implements RemoteSessionInterface
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<OAObject,OAObject> |
hashLock |
protected ConcurrentHashMap<Integer,OAObject> |
hashServerCache |
protected int |
sessionId |
Constructor and Description |
---|
RemoteSessionImpl(int sessionId) |
Modifier and Type | Method and Description |
---|---|
void |
addToServerCache(OAObject obj)
Used to make sure that object is stored in the server side
|
void |
clearCache() |
void |
clearLocks() |
OAObject |
createNewObject(Class clazz)
create a new object on the server,
and call addToCache
|
abstract boolean |
isLocked(Class objectClass,
OAObjectKey objectKey) |
abstract boolean |
isLockedByAnotherClient(Class objectClass,
OAObjectKey objectKey) |
boolean |
isLockedByThisClient(Class objectClass,
OAObjectKey objectKey) |
String |
ping(String msg) |
void |
ping2(String msg) |
void |
removeFromServerCache(int[] guids)
Objects on server side cache, that are on client that might get gc'd on server.
|
abstract void |
removeGuids(int[] guids)
GUIDs of the objects removed from oaObject cache on server.
|
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) |
protected ConcurrentHashMap<Integer,OAObject> hashServerCache
protected ConcurrentHashMap<OAObject,OAObject> hashLock
protected int sessionId
public void addToServerCache(OAObject obj)
RemoteSessionInterface
addToServerCache
in interface RemoteSessionInterface
public void removeFromServerCache(int[] guids)
RemoteSessionInterface
removeFromServerCache
in interface RemoteSessionInterface
public void saveCache(OACascade cascade, int iCascadeRule)
public abstract void removeGuids(int[] guids)
removeGuids
in interface RemoteSessionInterface
public void clearCache()
public boolean setLock(Class objectClass, OAObjectKey objectKey, boolean bLock)
setLock
in interface RemoteSessionInterface
public void setLock(OAObject obj, boolean bLock)
public void clearLocks()
public OAObject createNewObject(Class clazz)
RemoteSessionInterface
createNewObject
in interface RemoteSessionInterface
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–2019 ViaOA. All rights reserved.