public class PlatformDotNetCacheStoreFactory extends Object implements javax.cache.configuration.Factory<org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore>
This wrapper should be used if you have an implementation of
GridGain.Cache.IGridCacheStore
interface in .NET and
would like to configure it a persistence storage for your cache.
To do tis you will need to configure the wrapper via
CacheConfiguration.setCacheStoreFactory(javax.cache.configuration.Factory)
property
and provide assembly name and class name of your .NET store
implementation (both properties are mandatory):
<bean class="org.apache.ignite.cache.CacheConfiguration"> ... <property name="cacheStoreFactory"> <bean class="org.gridgain.grid.interop.dotnet.InteropDotNetCacheStoreFactory"> <property name="assemblyName" value="MyAssembly"/> <property name="className" value="MyApp.MyCacheStore"/> </bean> </property> ... </bean>If properly configured, this wrapper will instantiate an instance of your cache store in .NET and delegate all calls to that instance. To create an instance, assembly name and class name are passed to System.Activator.CreateInstance(String, String) method in .NET during node startup. Refer to its documentation for details.
Constructor and Description |
---|
PlatformDotNetCacheStoreFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore |
create() |
Map<String,?> |
getProperties()
Get properties.
|
String |
getTypeName()
Gets .NET type name.
|
void |
setProperties(Map<String,?> props)
Set properties.
|
void |
setTypeName(String typName)
Sets .NET type name.
|
public String getTypeName()
public void setTypeName(String typName)
typName
- .NET type name.public void setProperties(Map<String,?> props)
props
- Properties.public org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore create()
create
in interface javax.cache.configuration.Factory<org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetCacheStore>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023