public interface ITransactionStorage
Modifier and Type | Method and Description |
---|---|
void |
changeKey(String oldKey,
String newKey,
Object value)
Change the key of a data object and store it under the new key
|
List<String> |
clean(Date now,
long dataTimeOut)
Get all entries for Clean-up the transaction storage
|
boolean |
containsKey(String key)
Check if transaction storage contains a data object with a specific key
|
Object |
get(String key)
Get a data object from transaction storage
|
<T> T |
get(String key,
Class<T> clazz)
Get a data object from transaction storage
|
<T> T |
get(String key,
Class<T> clazz,
long dataTimeOut)
Get a data object from transaction storage
|
Object |
getAssertionStore(String key)
Get whole AssertionStoreObject, required for SLO
|
void |
put(String key,
Object value,
int timeout_ms)
Store a data object with a key to transaction storage
|
void |
putAssertionStore(Object element)
Put whole AssertionStoreObject to db, required for SLO
|
void |
remove(String key)
Remove a data object from transaction storage
|
boolean containsKey(String key)
key
- Key, which identifies a data objectvoid put(String key, Object value, int timeout_ms) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
key
- Id which identifiers the data objectvalue
- Data object which should be stored.
This data must implement the java.io.Serializable
interfacetimeout_ms
- Defines the period of time a data object is kept within the storageat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- In case of store operation failedObject get(String key) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
key
- key Id which identifiers the data objectat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- In case of load operation failed<T> T get(String key, Class<T> clazz) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
key
- Id which identifiers the data objectclazz
- The class type which is stored with this keyat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- In case of load operation failed<T> T get(String key, Class<T> clazz, long dataTimeOut) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, AuthenticationException
key
- Id which identifiers the data objectclazz
- The class type which is stored with this keyData-object
- timeout in [ms]at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- In case of load operation failedAuthenticationException
- In case of data-object timeout occursvoid changeKey(String oldKey, String newKey, Object value) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
oldKey
- Old key of the data objectnewKey
- New key, which should be used to store the data objectvalue
- Data object which should be storedat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- In case of store operation failedvoid remove(String key)
key
- Id which identifiers the data objectList<String> clean(Date now, long dataTimeOut)
now
- Current timedataTimeOut
- Data-object timeout in [ms]Object getAssertionStore(String key) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
key
- key Id which identifiers the data objectat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
- In case of load operation failedvoid putAssertionStore(Object element) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
element
- assertion store objectat.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
Copyright © 2017. All rights reserved.