public static interface SessionRepository.CommitTransaction
commit() method is called. Atomicity of
the transaction depends on underlying system.| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
Object value)
The passed attribute will be added (or changed) to the repository.
|
void |
commit()
Executes all
addAttribute(String, Object) and
removeAttribute(String) requests and performs all necessary
housekeeping when committing the session to the repository. |
boolean |
isDistributing()
Returns
true if executing the transaction results in session
data being distributed to remote store. |
boolean |
isSetAllAttributes()
Set to
true if all attributes must be committed. |
void |
removeAttribute(String key)
The passed attribute will be removed from repository.
|
void addAttribute(String key, Object value)
key - attribute keyvalue - attribute value. If session is stored remotely, attribute should
be Serializable.void removeAttribute(String key)
key - the key of attribute to removevoid commit()
addAttribute(String, Object) and
removeAttribute(String) requests and performs all necessary
housekeeping when committing the session to the repository.
If atomic operations are not supported by repository, the implementation should simply execute operations from transaction.
boolean isSetAllAttributes()
true if all attributes must be committed. If set to
false, only the attributes that were changed or deleted need
to be committed.true if all attributes need to be propagated,
false if only changed attributes need to be
propagatedboolean isDistributing()
true if executing the transaction results in session
data being distributed to remote store.true if executing the transaction results in session
data being distributed to remote store.Copyright © 2018 Amadeus s.a.s.. All rights reserved.