use of com.hazelcast.collection.impl.list.ListProxyImpl in project hazelcast by hazelcast.
the class ReadIListP method createTraverser.
@SuppressWarnings("rawtypes")
private Traverser<Data> createTraverser(HazelcastInstance instance, String name) {
IList<Data> list = instance.getList(name);
int size = list.size();
if (list instanceof ClientListProxy) {
ClientListProxy proxy = (ClientListProxy) list;
return createTraverser(size, proxy::dataSubList);
} else if (list instanceof ListProxyImpl) {
ListProxyImpl proxy = (ListProxyImpl) list;
return createTraverser(size, proxy::dataSubList);
} else {
throw new RuntimeException("Unexpected list class: " + list.getClass().getName());
}
}
Aggregations