public class ObjectMemoizer extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IObjectMemoizer, IObjectMemoizer2, IObjectMemoizerDiskCache, IPersistStream, IPersist, java.io.Externalizable
Description 'A basic LRU-based object memoizer.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
IID, IID5efa79c4_5bbc_4461_98b9_ce8341e4ccd9, xxDummy
IID70e17160_11c3_40f5_87fd_3e58826b3b3a
IID, IIDab74228b_3792_4d42_9118_1a1c46a7c2e9, xxDummy
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
IID0000010c_0000_0000_c000_000000000046
Constructor and Description |
---|
ObjectMemoizer()
Constructs a ObjectMemoizer using ArcGIS Engine.
|
ObjectMemoizer(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
ObjectMemoizer theObjectMemoizer = (ObjectMemoizer) obj; |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object vtKey,
java.lang.Object ppObject)
Memoizes an object uniquely associated with the specified key.
|
void |
clear()
Clears the object cache associated with the memoizer.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
boolean |
exists(java.lang.Object vtKey)
Returns TRUE if a previously memoized object associated with the specified key is found.
|
java.lang.Object |
get(java.lang.Object vtKey)
Retrieves the previously memoized object associated with the specified key and increments its usage count.
|
void |
getClassID(GUID[] pClassID)
getClassID
|
static java.lang.String |
getClsid()
getClsid.
|
int |
getCount()
The number of object currently held by the memoizer.
|
java.lang.String |
getFolderPath()
The path to the parent folder for storing cached objects.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
IVariantArray |
getKeys()
The set of keys associated with this object memoizer.
|
int |
getMaximumSize()
The maximum allowed number of objects held by the memoizer.
|
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax
|
int |
hashCode()
the hashcode for this object
|
boolean |
isCacheEnabled()
Indicates whether disk-based caching is enabled.
|
void |
isDirty()
isDirty
|
void |
load(IStream pstm)
load
|
void |
readExternal(java.io.ObjectInput in) |
void |
release()
Release this COM object reference
|
void |
remove(java.lang.Object vtKey)
Removes the previously memoized object associated with the specified key.
|
void |
save(IStream pstm,
int fClearDirty)
save
|
void |
setCacheEnabled(boolean pbCacheEnabled)
Indicates whether disk-based caching is enabled.
|
void |
setFolderPath(java.lang.String pbsFolderPath)
The path to the parent folder for storing cached objects.
|
void |
setMaximumSize(int pMaximumSize)
The maximum allowed number of objects held by the memoizer.
|
void |
writeExternal(java.io.ObjectOutput out) |
public static final long serialVersionUID
public ObjectMemoizer() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic ObjectMemoizer(java.lang.Object obj) throws java.io.IOException
ObjectMemoizer theObjectMemoizer = (ObjectMemoizer) obj;
obj
to ObjectMemoizer
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void add(java.lang.Object vtKey, java.lang.Object ppObject) throws java.io.IOException, AutomationException
add
in interface IObjectMemoizer
vtKey
- A Variant (in)ppObject
- A reference to another Object (IUnknown) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object get(java.lang.Object vtKey) throws java.io.IOException, AutomationException
get
in interface IObjectMemoizer
vtKey
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean exists(java.lang.Object vtKey) throws java.io.IOException, AutomationException
exists
in interface IObjectMemoizer
vtKey
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void clear() throws java.io.IOException, AutomationException
clear
in interface IObjectMemoizer
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getCount() throws java.io.IOException, AutomationException
getCount
in interface IObjectMemoizer
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setMaximumSize(int pMaximumSize) throws java.io.IOException, AutomationException
setMaximumSize
in interface IObjectMemoizer
pMaximumSize
- The pMaximumSize (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getMaximumSize() throws java.io.IOException, AutomationException
getMaximumSize
in interface IObjectMemoizer
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void remove(java.lang.Object vtKey) throws java.io.IOException, AutomationException
remove
in interface IObjectMemoizer
vtKey
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IVariantArray getKeys() throws java.io.IOException, AutomationException
getKeys
in interface IObjectMemoizer2
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isCacheEnabled() throws java.io.IOException, AutomationException
isCacheEnabled
in interface IObjectMemoizerDiskCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setCacheEnabled(boolean pbCacheEnabled) throws java.io.IOException, AutomationException
setCacheEnabled
in interface IObjectMemoizerDiskCache
pbCacheEnabled
- The pbCacheEnabled (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getFolderPath() throws java.io.IOException, AutomationException
getFolderPath
in interface IObjectMemoizerDiskCache
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setFolderPath(java.lang.String pbsFolderPath) throws java.io.IOException, AutomationException
setFolderPath
in interface IObjectMemoizerDiskCache
pbsFolderPath
- The pbsFolderPath (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws java.io.IOException, AutomationException
isDirty
in interface IPersistStream
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws java.io.IOException, AutomationException
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws java.io.IOException, AutomationException
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws java.io.IOException, AutomationException
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws java.io.IOException, AutomationException
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException