org.springframework.data.redis.connection.convert
Class TransactionResultConverter<T>
java.lang.Object
org.springframework.data.redis.connection.convert.TransactionResultConverter<T>
- Type Parameters:
T
- The type of FutureResult
of the individual tx operations
- All Implemented Interfaces:
- Converter<List<Object>,List<Object>>
public class TransactionResultConverter<T>
- extends Object
- implements Converter<List<Object>,List<Object>>
Converts the results of transaction exec using a supplied Queue of FutureResult
s. Converts any Exception
objects returned in the list as well, using the supplied Exception Converter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionResultConverter
public TransactionResultConverter(Queue<FutureResult<T>> txResults,
Converter<Exception,DataAccessException> exceptionConverter)
convert
public List<Object> convert(List<Object> execResults)
- Specified by:
convert
in interface Converter<List<Object>,List<Object>>