Package org.jgrapes.util.events
Class KeyValueStoreQuery
A query event for a key/value store.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor -
Constructor Summary
ConstructorsConstructorDescriptionKeyValueStoreQuery(String key) Creates a new event that queries using the given key.KeyValueStoreQuery(String key, Channel channel) Convenience constructor for creating a new event with a completion event of typeKeyValueStoreDatathat is fired on the given channel. -
Method Summary
Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toStringMethods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGetMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
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.
- Parameters:
key- the key
-
KeyValueStoreQuery
Convenience constructor for creating a new event with a completion event of typeKeyValueStoreDatathat is fired on the given channel.- Parameters:
key- the keychannel- the channel
-
-
Method Details
-
query
Returns the key used for the query.- Returns:
- the key
-