Alachisoft.NCache.Common.Extensibility.Client.RPC.Impl.CollectionConsolidator Maven / Gradle / Ivy
package Alachisoft.NCache.Common.Extensibility.Client.RPC.Impl;
public class CollectionConsolidator extends MultiPartitionResponseConsolidator {
private java.util.Collection responseCollection = new java.util.ArrayList();
@Override
public Object GetFinalResponse() {
if (_responses.size() > 0) {
for (Object response : _responses.values()) {
for (Object item : (java.util.Collection) response) {
responseCollection.add((TargetType) item);
}
}
}
return responseCollection;
}
}