public class IDistributedCacheImplementation extends NetObject implements IDistributedCache
.NET documentation at https://learn.microsoft.com/dotnet/api/Microsoft.Extensions.Caching.Distributed.IDistributedCache
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: Microsoft.Extensions.Caching.Abstractions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.Extensions.Caching.Abstractions
|
static java.lang.String |
className
Qualified class name: Microsoft.Extensions.Caching.Distributed.IDistributedCache
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
IDistributedCacheImplementation(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Get(java.lang.String key)
Invokes the .NET member Get.
|
Task_1 |
GetAsync(java.lang.String key,
CancellationToken token)
Invokes the .NET member GetAsync.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
Refresh(java.lang.String key)
Invokes the .NET member Refresh.
|
Task |
RefreshAsync(java.lang.String key,
CancellationToken token)
Invokes the .NET member RefreshAsync.
|
void |
Remove(java.lang.String key)
Invokes the .NET member Remove.
|
Task |
RemoveAsync(java.lang.String key,
CancellationToken token)
Invokes the .NET member RemoveAsync.
|
void |
Set(java.lang.String key,
byte[] value,
DistributedCacheEntryOptions options)
Invokes the .NET member Set.
|
void |
Set(java.lang.String dupParam0,
JCORefOut dupParam1,
DistributedCacheEntryOptions dupParam2)
Invokes the .NET member Set.
|
Task |
SetAsync(java.lang.String key,
byte[] value,
DistributedCacheEntryOptions options,
CancellationToken token)
Invokes the .NET member SetAsync.
|
Task |
SetAsync(java.lang.String dupParam0,
JCORefOut dupParam1,
DistributedCacheEntryOptions dupParam2,
CancellationToken dupParam3)
Invokes the .NET member SetAsync.
|
static IDistributedCache |
ToIDistributedCache(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into IDistributedCache, a cast assert is made to check if types are compatible. |
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toString, ToStringpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public IDistributedCacheImplementation(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic byte[] Get(java.lang.String key)
throws java.lang.Throwable
Get in interface IDistributedCachekey - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task_1 GetAsync(java.lang.String key, CancellationToken token) throws java.lang.Throwable
GetAsync in interface IDistributedCachekey - the argument of type java.lang.Stringtoken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IDistributedCachegetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IDistributedCachegetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IDistributedCachegetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IDistributedCachegetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IDistributedCachegetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic void Refresh(java.lang.String key)
throws java.lang.Throwable
Refresh in interface IDistributedCachekey - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task RefreshAsync(java.lang.String key, CancellationToken token) throws java.lang.Throwable
RefreshAsync in interface IDistributedCachekey - the argument of type java.lang.Stringtoken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Remove(java.lang.String key)
throws java.lang.Throwable
Remove in interface IDistributedCachekey - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task RemoveAsync(java.lang.String key, CancellationToken token) throws java.lang.Throwable
RemoveAsync in interface IDistributedCachekey - the argument of type java.lang.Stringtoken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Set(java.lang.String key,
byte[] value,
DistributedCacheEntryOptions options)
throws java.lang.Throwable
Set in interface IDistributedCachekey - the argument of type java.lang.Stringvalue - the argument of type byte[]options - the argument of type DistributedCacheEntryOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Set(java.lang.String dupParam0,
JCORefOut dupParam1,
DistributedCacheEntryOptions dupParam2)
throws java.lang.Throwable
Set in interface IDistributedCachedupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type DistributedCacheEntryOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task SetAsync(java.lang.String key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token) throws java.lang.Throwable
SetAsync in interface IDistributedCachekey - the argument of type java.lang.Stringvalue - the argument of type byte[]options - the argument of type DistributedCacheEntryOptionstoken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task SetAsync(java.lang.String dupParam0, JCORefOut dupParam1, DistributedCacheEntryOptions dupParam2, CancellationToken dupParam3) throws java.lang.Throwable
SetAsync in interface IDistributedCachedupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type DistributedCacheEntryOptionsdupParam3 - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static IDistributedCache ToIDistributedCache(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into IDistributedCache, a cast assert is made to check if types are compatible.ToIDistributedCache in interface IDistributedCachefrom - IJCOBridgeReflected instance to be castedIDistributedCache instancejava.lang.Throwable - in case of error during cast operation