at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
@Service("TransactionStorage") public class RedisTransactionStorage extends Object implements at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
Modifier and Type | Field | Description |
---|---|---|
protected at.gv.egovernment.moa.id.commons.api.AuthConfiguration |
authConfig |
Constructor | Description |
---|---|
RedisTransactionStorage() |
Modifier and Type | Method | Description |
---|---|---|
void |
changeKey(String oldKey,
String newKey,
Object value) |
|
List<String> |
clean(Date now,
long dataTimeOut) |
|
boolean |
containsKey(String key) |
|
Object |
get(String key) |
|
<T> T |
get(String key,
Class<T> clazz) |
|
<T> T |
get(String key,
Class<T> clazz,
long dataTimeOut) |
|
Object |
getRaw(String key) |
|
org.springframework.data.redis.core.RedisTemplate<String,Object> |
getTemplate() |
|
void |
put(String key,
Object value,
int timeoutms) |
|
void |
putRaw(String key,
Object element) |
|
void |
remove(String key) |
|
void |
setTemplate(org.springframework.data.redis.core.RedisTemplate<String,Object> t) |
@Autowired protected at.gv.egovernment.moa.id.commons.api.AuthConfiguration authConfig
public void setTemplate(org.springframework.data.redis.core.RedisTemplate<String,Object> t)
public boolean containsKey(String key)
containsKey
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
public void changeKey(String oldKey, String newKey, Object value) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
changeKey
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
public void put(String key, Object value, int timeoutms) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
put
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
public <T> T get(String key, Class<T> clazz) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
get
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
public Object get(String key) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
get
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
public <T> T get(String key, Class<T> clazz, long dataTimeOut) throws at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException, AuthenticationException
get
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
at.gv.egovernment.moa.id.commons.db.ex.MOADatabaseException
AuthenticationException
public List<String> clean(Date now, long dataTimeOut)
clean
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
public void remove(String key)
remove
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
public Object getRaw(String key) throws at.gv.egiz.eaaf.core.exceptions.EAAFException
getRaw
in interface at.gv.egiz.eaaf.core.api.storage.ITransactionStorage
at.gv.egiz.eaaf.core.exceptions.EAAFException
Copyright © 2019. All rights reserved.