-
Notifications
You must be signed in to change notification settings - Fork 2
David Souther edited this page Dec 24, 2012
·
1 revision
PersistenceStore(URI, options) -> PersistenceStore
Create a new persistence store to handle JEFRi transactions.
- URI Base URI of remote store.
- options Options to configure the store. Specific options must be defined by the store implementations.
returns The newly instantiated PersistenceStore.
execute(type, Transaction) -> Promise
Begin asynchronous execution of a transaction.
- type PERSIST or GET, depending on how to handle the transaction.
- Transaction Transaction to execute against the remote store.
returns Promise of a deferred that will be resolved when the transcation completes.
sending type, to_url, transaction, this Triggered when a store is about to send a transaction to a remote runtime.
-
type Either
'get'or'persist', depending on the type of the transaction. - to_url URL of the remote runtime the transaction is destined for.
- transaction A reference to the actual transaction.
- this A reference to the store sending the transaction.
sent type, to_url, transaction, promise, this Triggered after the request has been sent, but before it has returned with any data.
-
type Either
'get'or'persist', depending on the type of the transaction. - to_url URL of the remote runtime the transaction is destined for.
- transaction A reference to the actual transaction.
-
promise A reference to the
promisethat will resolve when the transaction completes. - this A reference to the store sending the transaction.