Package org.redisson.api
Class BatchResult<E>
- java.lang.Object
-
- org.redisson.api.BatchResult<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
public class BatchResult<E> extends Object implements List<E>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description BatchResult(List<E> responses, int syncedSlaves)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(int index, E element)
Deprecated.boolean
add(E e)
Deprecated.boolean
addAll(int index, Collection<? extends E> c)
Deprecated.boolean
addAll(Collection<? extends E> c)
Deprecated.void
clear()
Deprecated.boolean
contains(Object o)
Deprecated.boolean
containsAll(Collection<?> c)
Deprecated.E
get(int index)
Deprecated.List<?>
getResponses()
Returns list with result object for each commandint
getSyncedSlaves()
Returns synchronized slaves amount involved during batch executionint
indexOf(Object o)
Deprecated.boolean
isEmpty()
Deprecated.Iterator<E>
iterator()
Deprecated.int
lastIndexOf(Object o)
Deprecated.ListIterator<E>
listIterator()
Deprecated.ListIterator<E>
listIterator(int index)
Deprecated.E
remove(int index)
Deprecated.boolean
remove(Object o)
Deprecated.boolean
removeAll(Collection<?> c)
Deprecated.boolean
retainAll(Collection<?> c)
Deprecated.E
set(int index, E element)
Deprecated.int
size()
Deprecated.List<E>
subList(int fromIndex, int toIndex)
Deprecated.Object[]
toArray()
Deprecated.<T> T[]
toArray(T[] a)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getResponses
public List<?> getResponses()
Returns list with result object for each command- Returns:
- list
-
getSyncedSlaves
public int getSyncedSlaves()
Returns synchronized slaves amount involved during batch execution- Returns:
- slaves
-
size
@Deprecated public int size()
Deprecated.UsegetResponses()
-
isEmpty
@Deprecated public boolean isEmpty()
Deprecated.UsegetResponses()
-
contains
@Deprecated public boolean contains(Object o)
Deprecated.UsegetResponses()
-
iterator
@Deprecated public Iterator<E> iterator()
Deprecated.UsegetResponses()
-
toArray
@Deprecated public Object[] toArray()
Deprecated.UsegetResponses()
-
toArray
@Deprecated public <T> T[] toArray(T[] a)
Deprecated.UsegetResponses()
-
add
@Deprecated public boolean add(E e)
Deprecated.UsegetResponses()
-
remove
@Deprecated public boolean remove(Object o)
Deprecated.UsegetResponses()
-
containsAll
@Deprecated public boolean containsAll(Collection<?> c)
Deprecated.UsegetResponses()
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
@Deprecated public boolean addAll(Collection<? extends E> c)
Deprecated.UsegetResponses()
-
addAll
@Deprecated public boolean addAll(int index, Collection<? extends E> c)
Deprecated.UsegetResponses()
-
removeAll
@Deprecated public boolean removeAll(Collection<?> c)
Deprecated.UsegetResponses()
-
retainAll
@Deprecated public boolean retainAll(Collection<?> c)
Deprecated.UsegetResponses()
-
clear
@Deprecated public void clear()
Deprecated.UsegetResponses()
-
get
@Deprecated public E get(int index)
Deprecated.UsegetResponses()
-
set
@Deprecated public E set(int index, E element)
Deprecated.UsegetResponses()
-
add
@Deprecated public void add(int index, E element)
Deprecated.UsegetResponses()
-
remove
@Deprecated public E remove(int index)
Deprecated.UsegetResponses()
-
indexOf
@Deprecated public int indexOf(Object o)
Deprecated.UsegetResponses()
-
lastIndexOf
@Deprecated public int lastIndexOf(Object o)
Deprecated.UsegetResponses()
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
@Deprecated public ListIterator<E> listIterator()
Deprecated.UsegetResponses()
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
@Deprecated public ListIterator<E> listIterator(int index)
Deprecated.UsegetResponses()
- Specified by:
listIterator
in interfaceList<E>
-
subList
@Deprecated public List<E> subList(int fromIndex, int toIndex)
Deprecated.UsegetResponses()
-
-