|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.datastore.redis.RedisTransaction
public class RedisTransaction
Represents a Redis transaction
Constructor Summary | |
---|---|
RedisTransaction(RedisTemplate redisTemplate)
|
Method Summary | |
---|---|
void |
commit()
Commit the transaction. |
RedisTemplate |
getNativeTransaction()
|
boolean |
isActive()
Whether the transaction is active |
void |
rollback()
Rollback the transaction. |
void |
setTimeout(int timeout)
Sets the transaction timeout period |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedisTransaction(RedisTemplate redisTemplate)
Method Detail |
---|
public void commit()
Transaction
commit
in interface Transaction<RedisTemplate>
public boolean isActive()
Transaction
isActive
in interface Transaction<RedisTemplate>
public void setTimeout(int timeout)
Transaction
setTimeout
in interface Transaction<RedisTemplate>
timeout
- The timeoutpublic void rollback()
Transaction
rollback
in interface Transaction<RedisTemplate>
public RedisTemplate getNativeTransaction()
getNativeTransaction
in interface Transaction<RedisTemplate>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |