aboutsummaryrefslogtreecommitdiff
path: root/basicConfig/eIDAS/igniteSpecificCommunication.xml
diff options
context:
space:
mode:
Diffstat (limited to 'basicConfig/eIDAS/igniteSpecificCommunication.xml')
-rw-r--r--basicConfig/eIDAS/igniteSpecificCommunication.xml19
1 files changed, 18 insertions, 1 deletions
diff --git a/basicConfig/eIDAS/igniteSpecificCommunication.xml b/basicConfig/eIDAS/igniteSpecificCommunication.xml
index f817f5a4..da61cbf1 100644
--- a/basicConfig/eIDAS/igniteSpecificCommunication.xml
+++ b/basicConfig/eIDAS/igniteSpecificCommunication.xml
@@ -53,30 +53,35 @@
<property name="name" value="specificNodeConnectorRequestCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
+ <property name="expiryPolicyFactory" ref="7_minutes_duration"/>
</bean>
<!-- Partitioned cache example configuration (Atomic mode). -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="nodeSpecificProxyserviceRequestCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
+ <property name="expiryPolicyFactory" ref="7_minutes_duration"/>
</bean>
<!-- Partitioned cache example configuration (Atomic mode). -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="specificNodeProxyserviceResponseCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
- </bean>
+ <property name="expiryPolicyFactory" ref="7_minutes_duration"/>
+ </bean>
<!-- Partitioned cache example configuration (Atomic mode). -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="nodeSpecificConnectorResponseCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
+ <property name="expiryPolicyFactory" ref="7_minutes_duration"/>
</bean>
<!-- Partitioned cache example configuration (Atomic mode). -->
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="msConnectorCache"/>
<property name="atomicityMode" value="ATOMIC"/>
<property name="backups" value="1"/>
+ <property name="expiryPolicyFactory" ref="7_minutes_duration"/>
</bean>
</list>
@@ -106,4 +111,16 @@
<property name="searchSystemEnvironment" value="true"/>
</bean>
+ <!--
+ Defines expiry policy based on moment of creation for ignite cache.
+ -->
+ <bean id="7_minutes_duration" class="javax.cache.expiry.CreatedExpiryPolicy" factory-method="factoryOf" scope="prototype">
+ <constructor-arg>
+ <bean class="javax.cache.expiry.Duration">
+ <constructor-arg value="MINUTES"/>
+ <constructor-arg value="7"/>
+ </bean>
+ </constructor-arg>
+ </bean>
+
</beans>