public class LimitedDataBufferList extends ArrayList<DataBuffer>
List to collect data buffers with and enforce a
limit on the total number of bytes buffered. For use with "collect" or
other buffering operators in declarative APIs, e.g. Flux.
Adding elements increases the byte count and if the limit is exceeded,
DataBufferLimitException is raised. clear() resets the
count. Remove and set are not supported.
Note: This class does not automatically release the
buffers it contains. It is usually preferable to use hooks such as
Flux#doOnDiscard that also take care of cancel and error signals,
or otherwise #releaseAndClear() can be used.
modCount| 构造器和说明 |
|---|
LimitedDataBufferList(int maxByteCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(DataBuffer buffer) |
void |
add(int index,
DataBuffer buffer) |
boolean |
addAll(Collection<? extends DataBuffer> collection) |
boolean |
addAll(int index,
Collection<? extends DataBuffer> collection) |
void |
clear() |
DataBuffer |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeIf(Predicate<? super DataBuffer> filter) |
protected void |
removeRange(int fromIndex,
int toIndex) |
DataBuffer |
set(int index,
DataBuffer element) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodeparallelStream, streampublic boolean add(DataBuffer buffer)
add 在接口中 Collection<DataBuffer>add 在接口中 List<DataBuffer>add 在类中 ArrayList<DataBuffer>public void add(int index,
DataBuffer buffer)
add 在接口中 List<DataBuffer>add 在类中 ArrayList<DataBuffer>public boolean addAll(Collection<? extends DataBuffer> collection)
addAll 在接口中 Collection<DataBuffer>addAll 在接口中 List<DataBuffer>addAll 在类中 ArrayList<DataBuffer>public boolean addAll(int index,
Collection<? extends DataBuffer> collection)
addAll 在接口中 List<DataBuffer>addAll 在类中 ArrayList<DataBuffer>public DataBuffer remove(int index)
remove 在接口中 List<DataBuffer>remove 在类中 ArrayList<DataBuffer>public boolean remove(Object o)
remove 在接口中 Collection<DataBuffer>remove 在接口中 List<DataBuffer>remove 在类中 ArrayList<DataBuffer>protected void removeRange(int fromIndex,
int toIndex)
removeRange 在类中 ArrayList<DataBuffer>public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<DataBuffer>removeAll 在接口中 List<DataBuffer>removeAll 在类中 ArrayList<DataBuffer>public boolean removeIf(Predicate<? super DataBuffer> filter)
removeIf 在接口中 Collection<DataBuffer>removeIf 在类中 ArrayList<DataBuffer>public DataBuffer set(int index, DataBuffer element)
set 在接口中 List<DataBuffer>set 在类中 ArrayList<DataBuffer>public void clear()
clear 在接口中 Collection<DataBuffer>clear 在接口中 List<DataBuffer>clear 在类中 ArrayList<DataBuffer>Copyright © 2020. All rights reserved.