Class AddressLabelStorage

java.lang.Object
io.meeds.wallet.storage.AddressLabelStorage

public class AddressLabelStorage extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The cache of the labels each node loaded: a node keeps its load, and a change made on any node evicts it on every node.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AddressLabelStorage(AddressLabelDAO addressLabelDAO, org.exoplatform.services.cache.CacheService cacheService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Set<io.meeds.wallet.model.WalletAddressLabel>
     
    io.meeds.wallet.model.WalletAddressLabel
    getLabel(long id)
     
    void
    removeLabel(io.meeds.wallet.model.WalletAddressLabel label)
     
    io.meeds.wallet.model.WalletAddressLabel
    saveLabel(io.meeds.wallet.model.WalletAddressLabel label)
     

    Methods inherited from class Object

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

    • LABELS_CACHE_NAME

      public static final String LABELS_CACHE_NAME
      The cache of the labels each node loaded: a node keeps its load, and a change made on any node evicts it on every node. A load that read the store before a change and caches its result after the eviction keeps the old value until the entry expires: at most the cache's live time, 30 seconds by default.
      See Also:
  • Constructor Details

    • AddressLabelStorage

      public AddressLabelStorage(AddressLabelDAO addressLabelDAO, org.exoplatform.services.cache.CacheService cacheService)
  • Method Details

    • getAllLabels

      public Set<io.meeds.wallet.model.WalletAddressLabel> getAllLabels()
    • saveLabel

      public io.meeds.wallet.model.WalletAddressLabel saveLabel(io.meeds.wallet.model.WalletAddressLabel label)
    • getLabel

      public io.meeds.wallet.model.WalletAddressLabel getLabel(long id)
    • removeLabel

      public void removeLabel(io.meeds.wallet.model.WalletAddressLabel label)
    • clearCache

      public void clearCache()