Class CacheConfiguration

java.lang.Object
ru.cg.webbpm.modules.security.api.impl.cache.CacheConfiguration

@Configuration @Order(-2147483648) @EnableCaching(order=-2147483648) public class CacheConfiguration extends Object
Author:
Tim Urmancheev
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.cache.interceptor.CacheInterceptor
    cacheInterceptor(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.interceptor.CacheOperationSource cacheOperationSource)
     
    org.springframework.cache.CacheManager
    cacheManager(com.hazelcast.core.HazelcastInstance hazelcastInstance)
     
    com.hazelcast.core.HazelcastInstance
    hazelcastInstance(int hazelcastPort, String hazelcastHosts, String kubernetesServiceName, String hazelcastOutboundPortDefinitions, String hazelcastPublicAddress, String hazelcastInterfaces, Integer hazelcastBackupCount, Integer hazelcastAsyncBackupCount)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheConfiguration

      public CacheConfiguration()
  • Method Details

    • hazelcastInstance

      @Bean public com.hazelcast.core.HazelcastInstance hazelcastInstance(@Value("${webbpm.cache.hazelcast.port:5701}") int hazelcastPort, @Value("${webbpm.cache.hazelcast.hosts:#{null}}") String hazelcastHosts, @Value("${webbpm.cache.hazelcast.kubernetes.service_name:#{null}}") String kubernetesServiceName, @Value("${webbpm.cache.hazelcast.outbound_port_definitions:#{null}}") String hazelcastOutboundPortDefinitions, @Value("${webbpm.cache.hazelcast.public_address:#{null}}") String hazelcastPublicAddress, @Value("${webbpm.cache.hazelcast.interfaces:#{null}}") String hazelcastInterfaces, @Value("${webbpm.cache.hazelcast.backup_count:1}") Integer hazelcastBackupCount, @Value("${webbpm.cache.hazelcast.async_backup_count:0}") Integer hazelcastAsyncBackupCount)
    • cacheManager

      @Bean @Primary public org.springframework.cache.CacheManager cacheManager(com.hazelcast.core.HazelcastInstance hazelcastInstance)
    • cacheInterceptor

      @Bean @Primary public org.springframework.cache.interceptor.CacheInterceptor cacheInterceptor(org.springframework.cache.CacheManager cacheManager, org.springframework.cache.interceptor.CacheOperationSource cacheOperationSource)