Class KeyValueStoreQuery

All Implemented Interfaces:
Future<Map<String,String>>, Associator, Eligible

public class KeyValueStoreQuery extends Event<Map<String,String>>
A query event for a key/value store.
  • Constructor Details

    • KeyValueStoreQuery

      Creates a new event that queries using the given key.

      The result of the event is a map with the retrieved entries.

      key - the key
    • KeyValueStoreQuery

      public KeyValueStoreQuery(String key, Channel channel)
      Convenience constructor for creating a new event with a completion event of type KeyValueStoreData that is fired on the given channel.
      key - the key
      channel - the channel
  • Method Details

    • query

      public String query()
      Returns the key used for the query.
      the key