diff options
Diffstat (limited to 'eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage')
-rw-r--r-- | eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java index 15215b3e..754ff9ac 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java @@ -21,8 +21,10 @@ package at.gv.egiz.eaaf.core.api.storage; import java.util.Date; import java.util.List; + import javax.annotation.Nonnull; import javax.annotation.Nullable; + import at.gv.egiz.eaaf.core.exceptions.EaafException; import at.gv.egiz.eaaf.core.exceptions.EaafStorageException; @@ -45,10 +47,11 @@ public interface ITransactionStorage { /** * Store a data object with a key to transaction storage. * - * @param key Id which identifiers the data object - * @param value Data object which should be stored. This data must implement the - * <code>java.io.Serializable</code> interface - * @param timeoutMs Defines the period of time a data object is kept within the storage + * @param key Id which identifiers the data object + * @param value Data object which should be stored. This data must implement + * the <code>java.io.Serializable</code> interface + * @param timeoutMs Defines the period of time a data object is kept within the + * storage * @throws EaafStorageException In case of store operation failed */ void put(String key, Object value, int timeoutMs) throws EaafException; @@ -65,7 +68,7 @@ public interface ITransactionStorage { /** * Get a data object from transaction storage. * - * @param key Id which identifiers the data object + * @param key Id which identifiers the data object * @param clazz The class type which is stored with this key * @return The transaction-data object from type class, or null * @throws EaafStorageException In case of load operation failed @@ -75,21 +78,20 @@ public interface ITransactionStorage { /** * Get a data object from transaction storage. * - * @param key Id which identifiers the data object - * @param clazz The class type which is stored with this key + * @param key Id which identifiers the data object + * @param clazz The class type which is stored with this key * @param dataTimeOut Data-object timeout in [ms] * @return The transaction-data object from type class, or null * @throws EaafStorageException In case of load operation failed */ <T> T get(String key, final Class<T> clazz, long dataTimeOut) throws EaafException; - /** * Change the key of a data object and store it under the new key. * * @param oldKey Old key of the data object * @param newKey New key, which should be used to store the data object - * @param value Data object which should be stored + * @param value Data object which should be stored * @throws EaafStorageException In case of store operation failed */ void changeKey(String oldKey, String newKey, Object value) throws EaafException; @@ -104,13 +106,12 @@ public interface ITransactionStorage { /** * Get all entries for Clean-up the transaction storage. * - * @param now Current time + * @param now Current time * @param dataTimeOut Data-object timeout in [ms] * @return List of entry-keys which as a timeout */ List<String> clean(Date now, long dataTimeOut); - /** * Get a raw object from storage by using this key. * @@ -121,15 +122,13 @@ public interface ITransactionStorage { @Nullable Object getRaw(String key) throws EaafException; - /** * Set a raw object to storage. * - * @param key Storagekey + * @param key Storagekey * @param element Object to store * @throws EaafException In case of a storage error */ void putRaw(@Nonnull String key, @Nonnull Object element) throws EaafException; - } |