JBoss Community Archive (Read Only)

Infinispan 6.0

Is there a way to do a Bulk Get on a remote cache?

There's no bulk get operation in Hot Rod, but the Java Hot Rod client has implemented via RemoteCache the getAsync() operation, which returns a org.infinispan.util.concurrent.NotifyingFuture (extends java.util.concurrent.Future).
So, if you want to retrieve multiple keys in parallel, just call multiple times getAsync() and when you need the values, just call Future.get(), or attach a FutureListener to the NotifyingFuture to get notified when the value is ready.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 09:41:27 UTC, last content change 2011-12-13 13:44:49 UTC.