TimedBlockingHashMap Service

TimedBlockingHashMap Service

Classname: be.securit.trustbuilder.service.TimedBlockingHashMap

This service allows TrustBuilder workflows to store key/value pairs in memory for a certain time.

Property

  • TimeoutInSec Timeout of hashmap in seconds
  • ttl Timeout of hashmap in milliseconds

If both are used, the last property in the config is used. Best practice is use only one property.

Functions

  • get(key) Get item by key
  • get(key,timeout) Get item by key , timeout optional
  • put(key,value) Put key/value pair
  • remove(key) Remove item from store
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.