public interface IntentStore extends Store<IntentEvent,IntentStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
List<BatchWrite.Operation> |
batchWrite(BatchWrite batch)
Execute writes in a batch.
|
void |
createIntent(Intent intent)
Deprecated.
|
List<Intent> |
getInstallableIntents(IntentId intentId)
Returns the list of the installable events associated with the specified
original intent.
|
Intent |
getIntent(IntentId intentId)
Returns the intent with the specified identifier.
|
long |
getIntentCount()
Returns the number of intents in the store.
|
Iterable<Intent> |
getIntents()
Returns a collection of all intents in the store.
|
IntentState |
getIntentState(IntentId intentId)
Returns the state of the specified intent.
|
void |
removeInstalledIntents(IntentId intentId)
Removes any installable intents which resulted from compilation of the
specified original intent.
|
void |
removeIntent(IntentId intentId)
Deprecated.
|
void |
setInstallableIntents(IntentId intentId,
List<Intent> installableIntents)
Sets the installable intents which resulted from compilation of the
specified original intent.
|
void |
setState(Intent intent,
IntentState newState)
Sets the state of the specified intent to the new state.
|
hasDelegate, setDelegate, unsetDelegate@Deprecated void createIntent(Intent intent)
intent - intent to be submitted@Deprecated void removeIntent(IntentId intentId)
intentId - intent identificationlong getIntentCount()
Iterable<Intent> getIntents()
Intent getIntent(IntentId intentId)
intentId - intent identificationIntentState getIntentState(IntentId intentId)
intentId - intent identificationvoid setState(Intent intent, IntentState newState)
intent - intent whose state is to be changednewState - new statevoid setInstallableIntents(IntentId intentId, List<Intent> installableIntents)
intentId - original intent identifierinstallableIntents - compiled installable intentsList<Intent> getInstallableIntents(IntentId intentId)
intentId - original intent identifiervoid removeInstalledIntents(IntentId intentId)
intentId - original intent identifierList<BatchWrite.Operation> batchWrite(BatchWrite batch)
batch - BatchWrite to executeCopyright © 2015. All rights reserved.