public AssetStateIdle() { MessageManager.getInstance().addListener(new Telegraph() { @Override public boolean handleMessage(Telegram msg) { startGcTask(); return true; } }, AssetsStates.ASSETS_GC); }
@Override public Object provideMessageInfo (int msg, Telegraph receiver) { // when a new citizen come to town we tell him that we exists return this; }