engine.setExecutor(Executors.newCachedThreadPool());
engine.setRunning(true);
engine.start();
Thread.sleep(1000);
for (int x = 0; x < 10000000; x++) {
MockMudObject obj = new MockMudObject() {
@Override
public void heartBeat() {
if ("wombat0".equals(getName())) {
logging = true;
}
super.heartBeat();
}
};
obj.setName("wombat" + x);
if (reg.getMudObjects().size() % 1000 == 0) {
System.out.println("objects.size: " + reg.getMudObjects().size());
}
reg.addMudObject(obj);