Class QuoteMapStore

java.lang.Object
edu.yu.marketmaker.persistence.QuoteMapStore
All Implemented Interfaces:
com.hazelcast.map.MapLoader<String,Quote>, com.hazelcast.map.MapStore<String,Quote>

public class QuoteMapStore extends Object implements com.hazelcast.map.MapStore<String,Quote>
Hazelcast MapStore implementation for Quote records. This class bridges the Hazelcast IMap with PostgreSQL persistence by converting between Quote records and QuoteEntity objects.
  • Constructor Details

  • Method Details

    • store

      public void store(String key, Quote quote)
      Specified by:
      store in interface com.hazelcast.map.MapStore<String,Quote>
    • storeAll

      public void storeAll(Map<String,Quote> map)
      Specified by:
      storeAll in interface com.hazelcast.map.MapStore<String,Quote>
    • delete

      public void delete(String key)
      Specified by:
      delete in interface com.hazelcast.map.MapStore<String,Quote>
    • deleteAll

      public void deleteAll(Collection<String> keys)
      Specified by:
      deleteAll in interface com.hazelcast.map.MapStore<String,Quote>
    • load

      public Quote load(String key)
      Specified by:
      load in interface com.hazelcast.map.MapLoader<String,Quote>
    • loadAll

      public Map<String,Quote> loadAll(Collection<String> keys)
      Specified by:
      loadAll in interface com.hazelcast.map.MapLoader<String,Quote>
    • loadAllKeys

      public Iterable<String> loadAllKeys()
      Specified by:
      loadAllKeys in interface com.hazelcast.map.MapLoader<String,Quote>