public interface IntentService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IntentListener listener)
Adds the specified listener for intent events.
|
void |
execute(IntentOperations operations)
Submits a batch of submit & withdraw operations.
|
List<Intent> |
getInstallableIntents(IntentId intentId)
Returns the list of the installable events associated with the specified
top-level intent.
|
Intent |
getIntent(IntentId id)
Retrieves the intent specified by its identifier.
|
long |
getIntentCount()
Returns the number of intents currently in the system.
|
Iterable<Intent> |
getIntents()
Returns an iterable of intents currently in the system.
|
IntentState |
getIntentState(IntentId id)
Retrieves the state of an intent by its identifier.
|
void |
removeListener(IntentListener listener)
Removes the specified listener for intent events.
|
void |
replace(IntentId oldIntentId,
Intent newIntent)
Replaces the specified intent with a new one.
|
void |
submit(Intent intent)
Submits an intent into the system.
|
void |
withdraw(Intent intent)
Withdraws an intent from the system.
|
void submit(Intent intent)
This is an asynchronous request meaning that any compiling or installation activities may be done at later time.
intent - intent to be submittedvoid withdraw(Intent intent)
This is an asynchronous request meaning that the environment may be affected at later time.
intent - intent to be withdrawnvoid replace(IntentId oldIntentId, Intent newIntent)
oldIntentId - identifier of the old intent being replacednewIntent - new intent replacing the old onevoid execute(IntentOperations operations)
This is an asynchronous request meaning that the environment may be affected at later time.
operations - batch of intent operationsIterable<Intent> getIntents()
long getIntentCount()
Intent getIntent(IntentId id)
id - intent identifierIntentState getIntentState(IntentId id)
id - intent identifierList<Intent> getInstallableIntents(IntentId intentId)
intentId - top-level intent identifiervoid addListener(IntentListener listener)
listener - listener to be addedvoid removeListener(IntentListener listener)
listener - listener to be removedCopyright © 2015. All rights reserved.