Class SimulateTransferCacheOperation

java.lang.Object
es.kukenan.smartfi.microservice.transfer.cache.SimulateTransferCacheOperation

@Component public class SimulateTransferCacheOperation extends Object
Operation over cache.
  • Field Details

    • simulateName

      @Value("${cache.simulate-map}") private String simulateName
      map cache.contract cache established.
    • timeToLive

      @Value("${cache.bic.transfer.time-to-live}") private Long timeToLive
      time-to-live established.
    • hazelcastInstance

      @Autowired @Qualifier("hazelcastInstance") private com.hazelcast.core.HazelcastInstance hazelcastInstance
      HazelcastInstance hazelcastInstance.
  • Constructor Details

    • SimulateTransferCacheOperation

      public SimulateTransferCacheOperation()
  • Method Details

    • insertIntoCache

      public void insertIntoCache(String iban, String bicBeneficiary)
      Insert associated bic into caché.
      Parameters:
      iban - account iban.
      bicBeneficiary - bic beneficiary.
    • getFromCache

      public String getFromCache(String iban) throws Exception
      get Bic from Cache.
      Parameters:
      iban - account iban.
      Returns:
      bicBeneficiary.
      Throws:
      Exception - Error occurs during process.