コード例 #1
0
 @Warmup(global = true)
 public void warmup() {
   Streamer<Integer, Long> streamer = StreamerFactory.getInstance(cache);
   for (int i = 0; i < keyCount; i++) {
     streamer.pushEntry(i, 0L);
   }
   streamer.await();
 }
コード例 #2
0
 private void initMap() {
   Streamer<Integer, Pojo> streamer = StreamerFactory.getInstance(map);
   for (int i = 0; i < itemCount; i++) {
     Pojo pojo = new Pojo(i);
     streamer.pushEntry(pojo.id, pojo);
   }
   streamer.await();
 }
コード例 #3
0
 private void loadInitialData() {
   Streamer<Integer, SillySequence> streamer = StreamerFactory.getInstance(map);
   for (int i = 0; i < keyCount; i++) {
     SillySequence sillySequence = new SillySequence(i, nestedValuesCount);
     streamer.pushEntry(i, sillySequence);
   }
   streamer.await();
 }