public class ObjectCache extends NetObjectEnumerable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Runtime.Caching.ObjectCache
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Runtime.Caching
|
static java.lang.String |
className
Qualified class name: System.Runtime.Caching.ObjectCache
|
static JCType |
classType
The type managed from JCOBridge.
|
Null| Constructor and Description |
|---|
ObjectCache() |
ObjectCache(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Add(CacheItem item,
CacheItemPolicy policy) |
boolean |
Add(java.lang.String key,
NetObject value,
CacheItemPolicy policy,
java.lang.String regionName) |
boolean |
Add(java.lang.String key,
NetObject value,
DateTimeOffset absoluteExpiration,
java.lang.String regionName) |
CacheItem |
AddOrGetExisting(CacheItem value,
CacheItemPolicy policy) |
NetObject |
AddOrGetExisting(java.lang.String key,
NetObject value,
CacheItemPolicy policy,
java.lang.String regionName) |
NetObject |
AddOrGetExisting(java.lang.String key,
NetObject value,
DateTimeOffset absoluteExpiration,
java.lang.String regionName) |
static ObjectCache |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ObjectCache, a cast assert is made to check if types are compatible. |
boolean |
Contains(java.lang.String key,
java.lang.String regionName) |
NetObject |
Get(java.lang.String key,
java.lang.String regionName) |
CacheItem |
GetCacheItem(java.lang.String key,
java.lang.String regionName) |
long |
GetCount(java.lang.String regionName) |
DefaultCacheCapabilities |
getDefaultCacheCapabilities() |
static IServiceProvider |
getHost() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
java.lang.String |
getName() |
NetObject |
Remove(java.lang.String key,
java.lang.String regionName) |
void |
Set(CacheItem item,
CacheItemPolicy policy) |
void |
Set(java.lang.String key,
NetObject value,
CacheItemPolicy policy,
java.lang.String regionName) |
void |
Set(java.lang.String key,
NetObject value,
DateTimeOffset absoluteExpiration,
java.lang.String regionName) |
static void |
setHost(IServiceProvider Host) |
void |
setJCOInstance(JCObject instance) |
GetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIEnumerablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ObjectCache()
throws java.lang.Throwable
java.lang.Throwablepublic ObjectCache(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic boolean Add(CacheItem item, CacheItemPolicy policy) throws java.lang.Throwable
java.lang.Throwablepublic boolean Add(java.lang.String key,
NetObject value,
CacheItemPolicy policy,
java.lang.String regionName)
throws java.lang.Throwable
java.lang.Throwablepublic boolean Add(java.lang.String key,
NetObject value,
DateTimeOffset absoluteExpiration,
java.lang.String regionName)
throws java.lang.Throwable
java.lang.Throwablepublic CacheItem AddOrGetExisting(CacheItem value, CacheItemPolicy policy) throws java.lang.Throwable
java.lang.Throwablepublic NetObject AddOrGetExisting(java.lang.String key, NetObject value, CacheItemPolicy policy, java.lang.String regionName) throws java.lang.Throwable
java.lang.Throwablepublic NetObject AddOrGetExisting(java.lang.String key, NetObject value, DateTimeOffset absoluteExpiration, java.lang.String regionName) throws java.lang.Throwable
java.lang.Throwablepublic static ObjectCache cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ObjectCache, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedObjectCache instancejava.lang.Throwable - in case of error during cast operationpublic boolean Contains(java.lang.String key,
java.lang.String regionName)
throws java.lang.Throwable
java.lang.Throwablepublic NetObject Get(java.lang.String key, java.lang.String regionName) throws java.lang.Throwable
java.lang.Throwablepublic CacheItem GetCacheItem(java.lang.String key, java.lang.String regionName) throws java.lang.Throwable
java.lang.Throwablepublic long GetCount(java.lang.String regionName)
throws java.lang.Throwable
java.lang.Throwablepublic DefaultCacheCapabilities getDefaultCacheCapabilities() throws java.lang.Throwable
java.lang.Throwablepublic static IServiceProvider getHost() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectEnumerableString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectEnumerableString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectEnumerableObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectEnumerableString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectEnumerableJCType representing the CLR Type of the instantiated Classpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic NetObject Remove(java.lang.String key, java.lang.String regionName) throws java.lang.Throwable
java.lang.Throwablepublic void Set(CacheItem item, CacheItemPolicy policy) throws java.lang.Throwable
java.lang.Throwablepublic void Set(java.lang.String key,
NetObject value,
CacheItemPolicy policy,
java.lang.String regionName)
throws java.lang.Throwable
java.lang.Throwablepublic void Set(java.lang.String key,
NetObject value,
DateTimeOffset absoluteExpiration,
java.lang.String regionName)
throws java.lang.Throwable
java.lang.Throwablepublic static void setHost(IServiceProvider Host) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionNotImplementedExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionOutOfMemoryExceptionMissingManifestResourceExceptionObjectDisposedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectEnumerable