|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.sigmadynamics.sdo.support.SDOBase
com.sigmadynamics.sdo.base.SDO
com.sigmadynamics.sdo.support.SDEntityCache
public abstract class SDEntityCache
Field Summary | |
---|---|
protected int |
entryLifeTime if non-positive, then entries don't individually expire |
protected long |
refreshPeriod non-positive means cache age is entry based |
Fields inherited from class com.sigmadynamics.sdo.support.SDOBase |
---|
description, internalName, sdExternalName |
Constructor Summary | |
---|---|
SDEntityCache(int entryLifeTime, int maxSize, long refreshPeriod, HasLong currentTimeMillis) |
Method Summary | |
---|---|
EntityDataInterface |
get(EntityInterface entity) |
int |
getCurrentSize() |
int |
getEntryLifeTime() |
long |
getGets() Return the number of times get() has been called. |
long |
getHits() Return the number of times get() has been called and returned an entry from the cache. |
java.util.Set<EntityInterface> |
getKeys() Returns a new set containing the cache's keys. |
int |
getMaxSize() |
long |
getMisses() Return the number of times get() has been called and failed to return an entry. |
long |
getPuts() Returns the number of times put() has been called. |
long |
getRefreshes() Return the number of times the cache was entirely cleared, either manually via a JMX operation, or automatically after the cache's refresh period expired. |
long |
getRefreshPeriod() Return the interval, in milliseconds, between refreshing the entire cache. |
long |
getRefreshTime() |
protected void |
initRefreshTime(long now) Called by subclass's PostLoadInit, which is called by class loader. |
void |
put(EntityDataInterface newEntityData) |
protected void |
reload() |
Methods inherited from class com.sigmadynamics.sdo.support.SDOBase |
---|
getDescription, getSDOId, getSDOLabel, getSDOLabelOrId, setDescription, setSDOId, setSDOLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sigmadynamics.sdo.interfaces.EntityCacheInterface |
---|
loadCache |
Methods inherited from interface com.sigmadynamics.sdo.interfaces.client.SDOInterface |
---|
getDescription, getSDOId, getSDOLabel, getSDOLabelOrId |
Field Detail |
---|
protected final int entryLifeTime
protected final long refreshPeriod
Constructor Detail |
---|
public SDEntityCache(int entryLifeTime, int maxSize, long refreshPeriod, HasLong currentTimeMillis)
entryLifeTime
- lifetime of entry in secondsmaxSize
- maximum number of entries allowed in the cacherefreshPeriod
- lifetime of cache in millisecondsMethod Detail |
---|
protected void initRefreshTime(long now)
now
-protected void reload()
public EntityDataInterface get(EntityInterface entity)
get
in interface EntityCacheInterface
public void put(EntityDataInterface newEntityData)
put
in interface EntityCacheInterface
public java.util.Set<EntityInterface> getKeys()
getKeys
in interface EntityCacheInterface
public long getRefreshTime()
public int getCurrentSize()
public int getEntryLifeTime()
public int getMaxSize()
public long getRefreshPeriod()
public long getGets()
public long getHits()
public long getMisses()
public long getPuts()
public long getRefreshes()
|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |