306307308309310311312313314315316
} }; constructors[SIZE] = new ConstructorFunction<Integer, Portable>() { public Portable createNew(Integer arg) { return new MapSizeRequest(); } }; constructors[CLEAR] = new ConstructorFunction<Integer, Portable>() { public Portable createNew(Integer arg) {
116117118119120121122123
final IMap map = getMap(); for (int i = 0; i < size; i++) { map.put("-" + i, "-" + i); } final SimpleClient client = getClient(); client.send(new MapSizeRequest(mapName)); assertEquals(size, client.receive()); }
974975976977978979980981982
set(key, value, -1, TimeUnit.MILLISECONDS); } @Override public int size() { MapSizeRequest request = new MapSizeRequest(name); Integer result = invoke(request); return result; }