final int batchSize = 20;
int threadCount = 4;
final Object value = new String[]{"ABC", "EFG", "123", "890", "QWERTY"};
p1.addMapListener(new MapListener() {
@Override
public void entryUpdated(MapEvent evt) {
}
@Override
public void entryInserted(MapEvent evt) {
p4.put(evt.getKey(), evt.getNewValue());
}
@Override
public void entryDeleted(MapEvent evt) {
}
});
p2.addMapListener(new MapListener() {
@Override
public void entryUpdated(MapEvent evt) {
}
@Override
public void entryInserted(MapEvent evt) {
p3.put(evt.getKey(), evt.getNewValue());
}
@Override
public void entryDeleted(MapEvent evt) {
}
});
p3.addMapListener(new MapListener() {
@Override
public void entryUpdated(MapEvent evt) {
}