Advantage: if one performs the same query very often(e.g. several times every millisecond) the response will be fast and the system will not be overloaded.
Filter filter = new AndFilter(new EqualsFilter("getTrader", traderid),
new EqualsFilter("getStatus", Status.OPEN));ContinuousQueryCache cacheOpenTrades = new ContinuousQueryCache(cache, filter);
Iterator iter = cacheOpenTrades.entrySet().iterator(); //*this entrySet call will be instant!*
FOr a full list of scenario in which this can be used take a look at [1].
Shall we consider adding something similar?