From a0ee3599f5e67a8d50132b795dd467a3c8b1b460 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 27 Oct 2021 00:58:25 +0000 Subject: [PATCH] ThreadPool revert and path change. --- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../commons/concurrent/ThreadPool.java | 168 -------------- .../RejectedExecutionHandlerImpl.java | 12 +- .../commons/threads}/RunnableWrapper.java | 5 +- .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../commons/concurrent/ThreadPool.java | 168 -------------- .../RejectedExecutionHandlerImpl.java | 12 +- .../commons/threads}/RunnableWrapper.java | 5 +- .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10537_KamaelDisarray.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../commons/concurrent/ThreadPool.java | 168 -------------- .../RejectedExecutionHandlerImpl.java | 12 +- .../commons/threads}/RunnableWrapper.java | 5 +- .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10537_KamaelDisarray.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../commons/concurrent/ThreadPool.java | 168 -------------- .../RejectedExecutionHandlerImpl.java | 12 +- .../RunnableWrapper.java | 5 +- .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/ai/others/Tutorial/Tutorial.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../effecthandlers/ReplaceSkillBySkill.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10537_KamaelDisarray.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../RequestExPledgeMissionReward.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../ai/bosses/EtisVanEtina/EtisVanEtina.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/ai/others/Tutorial/Tutorial.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../effecthandlers/ReplaceSkillBySkill.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10537_KamaelDisarray.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../RequestExPledgeMissionReward.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../ai/bosses/EtisVanEtina/EtisVanEtina.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/ai/others/Tutorial/Tutorial.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../effecthandlers/ReplaceSkillBySkill.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10292_SevenSignsGirlOfDoubt.java | 2 +- .../Q10369_NoblesseSoulTesting.java | 2 +- .../Q10537_KamaelDisarray.java | 2 +- .../Q10742_AFurryFriend.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../RequestExPledgeMissionReward.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../ai/bosses/EtisVanEtina/EtisVanEtina.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../effecthandlers/ReplaceSkillBySkill.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../Q10537_KamaelDisarray.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RankManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../RequestExPledgeMissionReward.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPlayTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/AutoUseTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../ai/bosses/EtisVanEtina/EtisVanEtina.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../effecthandlers/ReplaceSkillBySkill.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RankManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../RequestExPledgeMissionReward.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPlayTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/AutoUseTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/GainakUnderground/GainakSiege.java | 2 +- .../AltarOfSacrifice/AltarOfSacrifice.java | 2 +- .../AwakeningMaster/AwakeningMaster.java | 2 +- .../HarnakUndergroundRuinsZone.java | 2 +- .../ai/bosses/EtisVanEtina/EtisVanEtina.java | 2 +- .../data/scripts/ai/bosses/Helios/Helios.java | 2 +- .../scripts/ai/bosses/Lindvior/Lindvior.java | 2 +- .../scripts/ai/bosses/Trasken/Trasken.java | 2 +- .../data/scripts/ai/others/EnergySeeds.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../effecthandlers/ReplaceSkillBySkill.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../TriggerSkillByDualRange.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../AltarOfShilen/AltarOfShilen.java | 2 +- .../CastleDungeon/CastleDungeon.java | 2 +- .../ChambersOfDelusion/ChamberOfDelusion.java | 2 +- .../FortressDungeon/FortressDungeon.java | 2 +- .../scripts/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RankManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../RequestExPledgeMissionReward.java | 2 +- .../serverpackets/ExAlterSkillRequest.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPlayTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/AutoUseTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/config/threadpool.ini | 16 +- .../java/org/l2jmobius/Config.java | 16 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../handler/itemhandlers/PetSummon.java | 2 +- .../handler/itemhandlers/ScrollOfEscape.java | 2 +- .../l2jmobius/gameserver/model/Potion.java | 2 +- .../org/l2jmobius/gameserver/model/Spawn.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../model/actor/instance/NpcInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../gameserver/threadpool/ThreadPool.java | 169 -------------- .../RejectedExecutionHandlerImpl.java | 12 +- .../RunnableWrapper.java | 5 +- .../gameserver/threads/ThreadPool.java | 215 ++++++++++++++++++ .../dist/game/config/main/Server.ini | 20 +- .../game/data/scripts/ai/bosses/Antharas.java | 2 +- .../game/data/scripts/ai/bosses/Baium.java | 2 +- .../game/data/scripts/ai/bosses/Valakas.java | 2 +- .../game/data/scripts/ai/bosses/Zaken.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../gameserver/ai/FortSiegeGuardAI.java | 2 +- .../l2jmobius/gameserver/ai/NpcWalkerAI.java | 2 +- .../l2jmobius/gameserver/ai/SiegeGuardAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/sql/TradeListTable.java | 2 +- .../gameserver/handler/AutoChatHandler.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handler/itemhandlers/ChristmasTree.java | 2 +- .../handler/itemhandlers/MysteryPotion.java | 2 +- .../handler/itemhandlers/Potions.java | 2 +- .../handler/itemhandlers/ScrollOfEscape.java | 2 +- .../handler/itemhandlers/SoulCrystals.java | 2 +- .../handler/itemhandlers/SummonItems.java | 2 +- .../handler/skillhandlers/ClanGate.java | 2 +- .../handler/skillhandlers/Disablers.java | 2 +- .../handler/usercommandhandlers/Escape.java | 2 +- .../voicedcommandhandlers/FarmPvpCmd.java | 2 +- .../voicedcommandhandlers/Wedding.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ChristmasManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../FourSepulchersManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../instancemanager/MercTicketManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/RaidBossSpawnManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/events/CTF.java | 2 +- .../gameserver/instancemanager/events/DM.java | 2 +- .../events/EventsGlobalTask.java | 2 +- .../instancemanager/events/TvT.java | 2 +- .../instancemanager/events/VIP.java | 2 +- .../instancemanager/games/Lottery.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../l2jmobius/gameserver/model/Effect.java | 2 +- .../l2jmobius/gameserver/model/Fishing.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Potion.java | 2 +- .../org/l2jmobius/gameserver/model/Radar.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../model/actor/instance/BabyPetInstance.java | 2 +- .../model/actor/instance/BoatInstance.java | 2 +- .../actor/instance/CabaleBufferInstance.java | 2 +- .../instance/CastleTeleporterInstance.java | 2 +- .../model/actor/instance/CubicInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/GrandBossInstance.java | 2 +- .../model/actor/instance/GuardInstance.java | 2 +- .../actor/instance/GuardNoHTMLInstance.java | 2 +- .../actor/instance/ManorManagerInstance.java | 2 +- .../model/actor/instance/MonsterInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ProtectorInstance.java | 2 +- .../actor/instance/RaidBossInstance.java | 2 +- .../instance/SepulcherMonsterInstance.java | 2 +- .../actor/instance/SepulcherNpcInstance.java | 2 +- .../model/actor/instance/SummonInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TownPetInstance.java | 2 +- .../actor/instance/XmassTreeInstance.java | 2 +- .../actor/knownlist/PlayerKnownList.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../gameserver/model/quest/QuestSpawn.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ClanHallAuction.java | 2 +- .../model/sevensigns/SevenSigns.java | 2 +- .../model/sevensigns/SevenSignsFestival.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/CastleUpdater.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../clanhalls/BanditStrongholdSiege.java | 2 +- .../siege/clanhalls/DevastatedCastle.java | 2 +- .../siege/clanhalls/FortressOfResistance.java | 2 +- .../siege/clanhalls/WildBeastFarmSiege.java | 2 +- .../model/spawn/AutoSpawnHandler.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/DynamicZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/PoisonZone.java | 2 +- .../gameserver/network/GameClient.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../clientpackets/RequestWearItem.java | 2 +- .../script/faenor/FaenorEventParser.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../gameserver/taskmanager/ExclusiveTask.java | 2 +- .../taskmanager/GameTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../KnownListUpdateTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../log/formatter/ConsoleLogFormatter.java | 2 +- .../l2jmobius/telnet/GameStatusThread.java | 2 +- .../l2jmobius/telnet/TelnetStatusThread.java | 2 +- .../dist/game/config/main/Server.ini | 20 +- .../game/data/scripts/ai/bosses/Antharas.java | 2 +- .../game/data/scripts/ai/bosses/Baium.java | 2 +- .../data/scripts/ai/bosses/Tyrannosaurus.java | 2 +- .../game/data/scripts/ai/bosses/Valakas.java | 2 +- .../data/scripts/ai/bosses/VanHalter.java | 2 +- .../game/data/scripts/ai/bosses/Zaken.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../gameserver/ai/FortSiegeGuardAI.java | 2 +- .../l2jmobius/gameserver/ai/NpcWalkerAI.java | 2 +- .../l2jmobius/gameserver/ai/SiegeGuardAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/sql/TradeListTable.java | 2 +- .../gameserver/handler/AutoChatHandler.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handler/itemhandlers/ChristmasTree.java | 2 +- .../handler/itemhandlers/MysteryPotion.java | 2 +- .../handler/itemhandlers/Potions.java | 2 +- .../handler/itemhandlers/ScrollOfEscape.java | 2 +- .../handler/itemhandlers/SoulCrystals.java | 2 +- .../handler/itemhandlers/SummonItems.java | 2 +- .../handler/skillhandlers/ClanGate.java | 2 +- .../handler/skillhandlers/Disablers.java | 2 +- .../handler/usercommandhandlers/Escape.java | 2 +- .../voicedcommandhandlers/FarmPvpCmd.java | 2 +- .../voicedcommandhandlers/Wedding.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ChristmasManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../FishingChampionshipManager.java | 2 +- .../FourSepulchersManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../instancemanager/MercTicketManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/RaidBossSpawnManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/events/CTF.java | 2 +- .../gameserver/instancemanager/events/DM.java | 2 +- .../events/EventsGlobalTask.java | 2 +- .../instancemanager/events/TvT.java | 2 +- .../instancemanager/events/VIP.java | 2 +- .../instancemanager/games/Lottery.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../l2jmobius/gameserver/model/Effect.java | 2 +- .../l2jmobius/gameserver/model/Fishing.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Potion.java | 2 +- .../org/l2jmobius/gameserver/model/Radar.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../model/actor/instance/BabyPetInstance.java | 2 +- .../model/actor/instance/BoatInstance.java | 2 +- .../actor/instance/CabaleBufferInstance.java | 2 +- .../instance/CastleTeleporterInstance.java | 2 +- .../model/actor/instance/CubicInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/GrandBossInstance.java | 2 +- .../model/actor/instance/GuardInstance.java | 2 +- .../actor/instance/GuardNoHTMLInstance.java | 2 +- .../actor/instance/ManorManagerInstance.java | 2 +- .../model/actor/instance/MonsterInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ProtectorInstance.java | 2 +- .../actor/instance/RaidBossInstance.java | 2 +- .../instance/SepulcherMonsterInstance.java | 2 +- .../actor/instance/SepulcherNpcInstance.java | 2 +- .../model/actor/instance/SummonInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TownPetInstance.java | 2 +- .../actor/instance/XmassTreeInstance.java | 2 +- .../actor/knownlist/PlayerKnownList.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../gameserver/model/quest/QuestSpawn.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ClanHallAuction.java | 2 +- .../model/sevensigns/SevenSigns.java | 2 +- .../model/sevensigns/SevenSignsFestival.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/CastleUpdater.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../clanhalls/BanditStrongholdSiege.java | 2 +- .../siege/clanhalls/DevastatedCastle.java | 2 +- .../siege/clanhalls/FortressOfResistance.java | 2 +- .../siege/clanhalls/WildBeastFarmSiege.java | 2 +- .../model/spawn/AutoSpawnHandler.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/DynamicZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/PoisonZone.java | 2 +- .../gameserver/network/GameClient.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../clientpackets/RequestWearItem.java | 2 +- .../script/faenor/FaenorEventParser.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../gameserver/taskmanager/ExclusiveTask.java | 2 +- .../taskmanager/GameTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../KnownListUpdateTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../log/formatter/ConsoleLogFormatter.java | 2 +- .../l2jmobius/telnet/GameStatusThread.java | 2 +- .../l2jmobius/telnet/TelnetStatusThread.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/ForgeOfTheGods/TarBeetleSpawn.java | 2 +- .../ai/areas/Gracia/AI/EnergySeeds.java | 2 +- .../HallOfErosionAttack.java | 2 +- .../HallOfErosionDefence.java | 2 +- .../HeartInfinityAttack.java | 2 +- .../HeartInfinityDefence.java | 2 +- .../Gracia/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../ai/areas/Hellbound/AI/Chimeras.java | 2 +- .../AI/Zones/TowerOfNaia/TowerOfNaia.java | 2 +- .../AI/Zones/TullyWorkshop/TullyWorkshop.java | 2 +- .../Instances/UrbanArea/UrbanArea.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../others/NpcBuffers/impl/CabaleBuffer.java | 2 +- .../data/scripts/ai/others/RandomSpawn.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../FortressOfTheDead/FortressOfTheDead.java | 2 +- .../RainbowSpringsChateau.java | 2 +- .../conquerablehalls/flagwar/FlagWar.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminEditChar.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/usercommandhandlers/Unstuck.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../voicedcommandhandlers/Wedding.java | 2 +- .../instances/ChambersOfDelusion/Chamber.java | 2 +- .../Q00311_ExpulsionOfEvilSpirits.java | 2 +- .../Q00511_AwlUnderFoot.java | 2 +- .../Q00726_LightWithinTheDarkness.java | 2 +- .../Q00727_HopeWithinTheDarkness.java | 2 +- .../scripts/vehicles/BoatGiranTalking.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../scripts/vehicles/BoatTalkingGludin.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/AttackableAI.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../gameserver/ai/FortSiegeGuardAI.java | 2 +- .../l2jmobius/gameserver/ai/SiegeGuardAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SkillData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../FishingChampionshipManager.java | 2 +- .../FourSepulchersManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RaidBossSpawnManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/SoDManager.java | 2 +- .../instancemanager/SoIManager.java | 2 +- .../instancemanager/TerritoryWarManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../events/TvTEventTeleporter.java | 2 +- .../instancemanager/events/TvTManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/Lottery.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../FourSepulchersChangeAttackTimeTask.java | 2 +- .../FourSepulchersChangeCoolDownTimeTask.java | 2 +- .../FourSepulchersChangeEntryTimeTask.java | 2 +- .../FourSepulchersChangeWarmUpTimeTask.java | 2 +- .../tasks/FourSepulchersManagerSayTask.java | 2 +- .../gameserver/model/AutoSpawnHandler.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DimensionalRift.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/EffectList.java | 2 +- .../l2jmobius/gameserver/model/Message.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../model/actor/instance/BabyPetInstance.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/CubicInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../instance/SepulcherMonsterInstance.java | 2 +- .../actor/instance/SepulcherNpcInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../model/residences/AuctionableHall.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ClanHallAuction.java | 2 +- .../model/sevensigns/SevenSigns.java | 2 +- .../model/sevensigns/SevenSignsFestival.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../siege/clanhalls/ClanHallSiegeEngine.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../taskmanager/GameTimeTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../scripts/ai/areas/FantasyIsle/Parade.java | 2 +- .../areas/ForgeOfTheGods/TarBeetleSpawn.java | 2 +- .../ai/areas/Gracia/AI/EnergySeeds.java | 2 +- .../HallOfErosionAttack.java | 2 +- .../HallOfErosionDefence.java | 2 +- .../HeartInfinityAttack.java | 2 +- .../HeartInfinityDefence.java | 2 +- .../Gracia/vehicles/AirShipController.java | 2 +- .../AirShipGludioGracia.java | 2 +- .../ai/areas/Hellbound/AI/Chimeras.java | 2 +- .../AI/Zones/TowerOfNaia/TowerOfNaia.java | 2 +- .../AI/Zones/TullyWorkshop/TullyWorkshop.java | 2 +- .../Instances/UrbanArea/UrbanArea.java | 2 +- .../ai/bosses/SeerUgoros/SeerUgoros.java | 2 +- .../ai/others/NpcBuffers/NpcBufferAI.java | 2 +- .../ai/others/NpcBuffers/NpcBuffers.java | 2 +- .../others/NpcBuffers/impl/CabaleBuffer.java | 2 +- .../data/scripts/ai/others/RandomSpawn.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../FortressOfTheDead/FortressOfTheDead.java | 2 +- .../RainbowSpringsChateau.java | 2 +- .../conquerablehalls/flagwar/FlagWar.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../events/SavingSanta/SavingSanta.java | 2 +- .../admincommandhandlers/AdminEditChar.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/usercommandhandlers/Unstuck.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../voicedcommandhandlers/Wedding.java | 2 +- .../instances/ChambersOfDelusion/Chamber.java | 2 +- .../FinalEmperialTomb/FinalEmperialTomb.java | 2 +- .../Q00311_ExpulsionOfEvilSpirits.java | 2 +- .../Q00511_AwlUnderFoot.java | 2 +- .../Q00726_LightWithinTheDarkness.java | 2 +- .../Q00727_HopeWithinTheDarkness.java | 2 +- .../scripts/vehicles/BoatGiranTalking.java | 2 +- .../data/scripts/vehicles/BoatGludinRune.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../scripts/vehicles/BoatTalkingGludin.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/AttackableAI.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../gameserver/ai/FortSiegeGuardAI.java | 2 +- .../l2jmobius/gameserver/ai/SiegeGuardAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SkillData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../FishingChampionshipManager.java | 2 +- .../FourSepulchersManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RaidBossSpawnManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/SoDManager.java | 2 +- .../instancemanager/SoIManager.java | 2 +- .../instancemanager/TerritoryWarManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../events/TvTEventTeleporter.java | 2 +- .../instancemanager/events/TvTManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/Lottery.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../FourSepulchersChangeAttackTimeTask.java | 2 +- .../FourSepulchersChangeCoolDownTimeTask.java | 2 +- .../FourSepulchersChangeEntryTimeTask.java | 2 +- .../FourSepulchersChangeWarmUpTimeTask.java | 2 +- .../tasks/FourSepulchersManagerSayTask.java | 2 +- .../gameserver/model/AutoSpawnHandler.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DimensionalRift.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/EffectList.java | 2 +- .../l2jmobius/gameserver/model/Message.java | 2 +- .../org/l2jmobius/gameserver/model/Nevit.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../model/actor/instance/BabyPetInstance.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/CubicInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../instance/SepulcherMonsterInstance.java | 2 +- .../actor/instance/SepulcherNpcInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/olympiad/OlympiadManager.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../model/residences/AuctionableHall.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ClanHallAuction.java | 2 +- .../model/sevensigns/SevenSigns.java | 2 +- .../model/sevensigns/SevenSignsFestival.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../siege/clanhalls/ClanHallSiegeEngine.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../taskmanager/GameTimeTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../instances/MonsterArena/MonsterArena.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../instances/MonsterArena/MonsterArena.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../instances/MonsterArena/MonsterArena.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../instances/MonsterArena/MonsterArena.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RankManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPlayTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/AutoUseTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../scripts/ai/areas/DenOfEvil/DenOfEvil.java | 2 +- .../FourSepulchers/FourSepulchers.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../scripts/vehicles/BoatGiranTalking.java | 2 +- .../scripts/vehicles/BoatInnadrilTour.java | 2 +- .../scripts/vehicles/BoatRunePrimeval.java | 2 +- .../scripts/vehicles/BoatTalkingGludin.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/Lottery.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../ai/areas/OrcBarracks/Kerr/Kerr.java | 2 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../game/data/scripts/ai/others/Atingo.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/SummonPet.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../instances/MonsterArena/MonsterArena.java | 2 +- .../TranscendentZone/TranscendentZone.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/RankManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../clientpackets/pet/ExPetEquipItem.java | 2 +- .../ExPurchaseLimitShopItemListNew.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPlayTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/AutoUseTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- .../dist/game/config/Server.ini | 20 +- .../ai/areas/FrostCastleZone/Reggiesys.java | 2 +- .../ai/areas/FrostCastleZone/Slicing.java | 2 +- .../ai/areas/FrostCastleZone/Tiron.java | 2 +- .../scripts/ai/areas/Hellbound/Aizen.java | 2 +- .../scripts/ai/areas/Hellbound/Deiman.java | 2 +- .../Hellbound/IvoryTowerTeleportZones.java | 2 +- .../scripts/ai/areas/Hellbound/Ryuminir.java | 2 +- .../scripts/ai/areas/Hellbound/Satina.java | 2 +- .../ai/areas/OrcBarracks/Kerr/Kerr.java | 2 +- .../DimensionalVortex/DimensionalVortex.java | 2 +- .../TowerOfInsolence/EnergyOfInsolence.java | 2 +- .../game/data/scripts/ai/others/Atingo.java | 2 +- .../data/scripts/ai/others/SiegeGuards.java | 2 +- .../scripts/custom/events/Elpies/Elpies.java | 2 +- .../data/scripts/custom/events/Race/Race.java | 2 +- .../admincommandhandlers/AdminReload.java | 2 +- .../admincommandhandlers/AdminTest.java | 2 +- .../handlers/communityboard/HomeBoard.java | 2 +- .../handlers/effecthandlers/MaxCp.java | 2 +- .../handlers/effecthandlers/MaxHp.java | 2 +- .../handlers/effecthandlers/MaxMp.java | 2 +- .../handlers/effecthandlers/SummonPet.java | 2 +- .../handlers/effecthandlers/TriggerSkill.java | 2 +- .../TriggerSkillByDualRange.java | 2 +- .../handlers/playeractions/SocialAction.java | 2 +- .../punishmenthandlers/JailHandler.java | 2 +- .../handlers/telnethandlers/server/Debug.java | 2 +- .../telnethandlers/server/Performance.java | 2 +- .../handlers/telnethandlers/server/Purge.java | 2 +- .../handlers/voicedcommandhandlers/Lang.java | 2 +- .../instances/MonsterArena/MonsterArena.java | 2 +- .../TranscendentZone/TranscendentZone.java | 2 +- .../java/org/l2jmobius/Config.java | 22 +- .../RejectedExecutionHandlerImpl.java | 50 ---- .../commons/concurrent/RunnableWrapper.java | 50 ---- .../commons/concurrent/ThreadPool.java | 168 -------------- .../threads/RejectedExecutionHandlerImpl.java | 52 +++++ .../commons/threads/RunnableWrapper.java | 47 ++++ .../l2jmobius/commons/threads/ThreadPool.java | 214 +++++++++++++++++ .../l2jmobius/commons/util/IXmlReader.java | 2 +- .../org/l2jmobius/gameserver/GameServer.java | 2 +- .../org/l2jmobius/gameserver/Shutdown.java | 2 +- .../l2jmobius/gameserver/ai/CreatureAI.java | 2 +- .../org/l2jmobius/gameserver/ai/DoorAI.java | 2 +- .../org/l2jmobius/gameserver/ai/SummonAI.java | 2 +- .../cache/WarehouseCacheManager.java | 2 +- .../gameserver/data/BotReportTable.java | 2 +- .../l2jmobius/gameserver/data/ItemTable.java | 2 +- .../gameserver/data/sql/ClanTable.java | 2 +- .../gameserver/data/xml/SpawnData.java | 2 +- .../handler/AdminCommandHandler.java | 2 +- .../instancemanager/CastleManorManager.java | 2 +- .../instancemanager/ClanEntryManager.java | 2 +- .../instancemanager/CommissionManager.java | 2 +- .../instancemanager/CustomMailManager.java | 2 +- .../instancemanager/DBSpawnManager.java | 2 +- .../FakePlayerChatManager.java | 2 +- .../instancemanager/GraciaSeedsManager.java | 2 +- .../instancemanager/GrandBossManager.java | 2 +- .../HandysBlockCheckerManager.java | 2 +- .../instancemanager/HeavenlyRiftManager.java | 2 +- .../gameserver/instancemanager/IdManager.java | 2 +- .../instancemanager/ItemsOnGroundManager.java | 2 +- .../PrecautionaryRestartManager.java | 2 +- .../instancemanager/PremiumManager.java | 2 +- .../instancemanager/PurgeRankingManager.java | 2 +- .../instancemanager/RankManager.java | 2 +- .../instancemanager/RecipeManager.java | 2 +- .../instancemanager/ServerRestartManager.java | 2 +- .../instancemanager/WalkingManager.java | 2 +- .../instancemanager/games/BlockChecker.java | 2 +- .../instancemanager/games/MonsterRace.java | 2 +- .../gameserver/model/CursedWeapon.java | 2 +- .../gameserver/model/DropProtection.java | 2 +- .../org/l2jmobius/gameserver/model/Duel.java | 2 +- .../gameserver/model/MpRewardTask.java | 2 +- .../org/l2jmobius/gameserver/model/Party.java | 2 +- .../l2jmobius/gameserver/model/Request.java | 2 +- .../gameserver/model/WorldRegion.java | 2 +- .../gameserver/model/actor/Attackable.java | 2 +- .../gameserver/model/actor/Creature.java | 2 +- .../l2jmobius/gameserver/model/actor/Npc.java | 2 +- .../gameserver/model/actor/Vehicle.java | 2 +- .../instance/ControllableAirShipInstance.java | 2 +- .../model/actor/instance/DecoyInstance.java | 2 +- .../model/actor/instance/DoorInstance.java | 2 +- .../actor/instance/FortCommanderInstance.java | 2 +- .../model/actor/instance/PetInstance.java | 2 +- .../model/actor/instance/PlayerInstance.java | 2 +- .../actor/instance/ServitorInstance.java | 2 +- .../actor/instance/SiegeFlagInstance.java | 2 +- .../actor/instance/TamedBeastInstance.java | 2 +- .../model/actor/instance/TrapInstance.java | 2 +- .../model/actor/request/AbstractRequest.java | 2 +- .../model/actor/status/CreatureStatus.java | 2 +- .../tasks/attackable/CommandChannelTimer.java | 2 +- .../actor/tasks/npc/trap/TrapTriggerTask.java | 2 +- .../actor/tasks/player/FlyMoveStartTask.java | 2 +- .../model/announce/AutoAnnouncement.java | 2 +- .../l2jmobius/gameserver/model/clan/Clan.java | 2 +- .../gameserver/model/clan/ClanWar.java | 2 +- .../gameserver/model/cubic/CubicInstance.java | 2 +- .../model/eventengine/EventScheduler.java | 2 +- .../model/events/EventDispatcher.java | 2 +- .../model/events/timers/TimerHolder.java | 2 +- .../gameserver/model/fishing/Fishing.java | 2 +- .../model/instancezone/Instance.java | 2 +- .../model/itemauction/ItemAuction.java | 2 +- .../itemauction/ItemAuctionInstance.java | 2 +- .../gameserver/model/olympiad/Olympiad.java | 2 +- .../model/olympiad/OlympiadGameTask.java | 2 +- .../model/punishment/PunishmentTask.java | 2 +- .../gameserver/model/quest/LongTimeEvent.java | 2 +- .../gameserver/model/quest/QuestTimer.java | 2 +- .../gameserver/model/residences/ClanHall.java | 2 +- .../model/residences/ResidenceFunction.java | 2 +- .../model/shuttle/ShuttleEngine.java | 2 +- .../gameserver/model/siege/Castle.java | 2 +- .../gameserver/model/siege/Fort.java | 2 +- .../gameserver/model/siege/FortSiege.java | 2 +- .../gameserver/model/siege/Siege.java | 2 +- .../model/skills/BuffFinishTask.java | 2 +- .../gameserver/model/skills/BuffInfo.java | 2 +- .../gameserver/model/skills/SkillCaster.java | 2 +- .../model/skills/SkillChannelizer.java | 2 +- .../model/votereward/VoteSystem.java | 2 +- .../model/zone/type/DamageZone.java | 2 +- .../model/zone/type/EffectZone.java | 2 +- .../model/zone/type/FishingZone.java | 2 +- .../gameserver/model/zone/type/JailZone.java | 2 +- .../model/zone/type/OlympiadStadiumZone.java | 2 +- .../zone/type/ResidenceHallTeleportZone.java | 2 +- .../model/zone/type/SayuneZone.java | 2 +- .../gameserver/network/Disconnection.java | 2 +- .../network/clientpackets/EnterWorld.java | 2 +- .../clientpackets/RequestDuelStart.java | 2 +- .../clientpackets/RequestJoinParty.java | 2 +- .../clientpackets/RequestJoinPledge.java | 2 +- .../clientpackets/RequestPreviewItem.java | 2 +- .../clientpackets/RequestRestartPoint.java | 2 +- .../network/clientpackets/TradeRequest.java | 2 +- .../network/clientpackets/UseItem.java | 2 +- .../RequestOneDayRewardReceive.java | 2 +- .../friend/RequestFriendInvite.java | 2 +- .../clientpackets/pet/ExPetEquipItem.java | 2 +- .../taskmanager/AttackStanceTaskManager.java | 2 +- .../AttackableThinkTaskManager.java | 2 +- .../taskmanager/AutoPlayTaskManager.java | 2 +- .../taskmanager/AutoPotionTaskManager.java | 2 +- .../taskmanager/AutoUseTaskManager.java | 2 +- .../taskmanager/BuyListTaskManager.java | 2 +- .../CreatureFollowTaskManager.java | 2 +- .../taskmanager/CreatureSeeTaskManager.java | 2 +- .../taskmanager/DecayTaskManager.java | 2 +- .../ItemAppearanceTaskManager.java | 2 +- .../taskmanager/ItemLifeTimeTaskManager.java | 2 +- .../taskmanager/ItemManaTaskManager.java | 2 +- .../ItemsAutoDestroyTaskManager.java | 2 +- .../MessageDeletionTaskManager.java | 2 +- .../PlayerAutoSaveTaskManager.java | 2 +- .../taskmanager/PvpFlagTaskManager.java | 2 +- .../RandomAnimationTaskManager.java | 2 +- .../taskmanager/RespawnTaskManager.java | 2 +- .../gameserver/taskmanager/TaskManager.java | 2 +- .../org/l2jmobius/gameserver/util/Evolve.java | 2 +- .../l2jmobius/gameserver/util/MinionList.java | 2 +- .../org/l2jmobius/gameserver/util/Util.java | 2 +- 3743 files changed, 11356 insertions(+), 9800 deletions(-) delete mode 100644 L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/ThreadPool.java rename L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/{concurrent => threads}/RejectedExecutionHandlerImpl.java (76%) rename {L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent => L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads}/RunnableWrapper.java (91%) create mode 100644 L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/ThreadPool.java rename {L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent => L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads}/RejectedExecutionHandlerImpl.java (76%) rename {L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent => L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads}/RunnableWrapper.java (91%) create mode 100644 L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/ThreadPool.java rename {L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent => L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads}/RejectedExecutionHandlerImpl.java (76%) rename {L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent => L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads}/RunnableWrapper.java (91%) create mode 100644 L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/ThreadPool.java rename {L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent => L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads}/RejectedExecutionHandlerImpl.java (76%) rename L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/{concurrent => threads}/RunnableWrapper.java (91%) create mode 100644 L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/ThreadPool.java rename L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/{threadpool => threads}/RejectedExecutionHandlerImpl.java (77%) rename L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/{threadpool => threads}/RunnableWrapper.java (91%) create mode 100644 L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/ThreadPool.java delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/ThreadPool.java delete mode 100644 L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java delete mode 100644 L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java delete mode 100644 L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/ThreadPool.java create mode 100644 L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java create mode 100644 L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RunnableWrapper.java create mode 100644 L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/ThreadPool.java diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/config/Server.ini b/L2J_Mobius_01.0_Ertheia/dist/game/config/Server.ini index b174b854e7..7410538c1d 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/config/Server.ini +++ b/L2J_Mobius_01.0_Ertheia/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 89425b0d85..37bf53671e 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 3066ed9084..5a35c8057a 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index abe24e1589..14116e52a6 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index 6314296cb5..d5728d9746 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index a8df36d591..8e01817952 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index e1ed5dde62..1fc838315f 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 974bc26b20..4ad4b0af70 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatGludinRune.java index 20cdfaff58..1127878d58 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_01.0_Ertheia/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/Config.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/Config.java index 1b056eb984..f2db08a2ad 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/Config.java @@ -442,7 +442,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1429,9 +1431,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- * - */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java similarity index 76% rename from L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java rename to L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java index 7d85dca00e..5130f7152e 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -14,13 +14,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.logging.Logger; +import org.l2jmobius.Config; + /** * @author NB4L1 */ @@ -29,22 +31,22 @@ public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) { if (executor.isShutdown()) { return; } - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) { - new Thread(r).start(); + new Thread(runnable).start(); } else { - r.run(); + runnable.run(); } } } diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/RunnableWrapper.java similarity index 91% rename from L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java rename to L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/RunnableWrapper.java index e05addb99a..43671b933d 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -14,13 +14,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.lang.Thread.UncaughtExceptionHandler; -/** - * @author Mobius - */ public class RunnableWrapper implements Runnable { private final Runnable _runnable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/GameServer.java index 335962530a..da9ad63253 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/BotReportTable.java index e8529b0176..cf662110c5 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 3ebc968ea1..173a739728 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 6aec45a8a6..739f11fd6f 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index d3ba2adc74..56869a8f88 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 54f833e775..5d860858a4 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java index 6665842655..b9705afe58 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Npc.java index 29a3deea8e..4d80a4b616 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index de6a60a4ab..1d7aaa7b29 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/Clan.java index a8526342f6..8b0a754696 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ebb01d6c06..bfe4327e3b 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index a8e37956d2..fbd9645cb5 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index f852953226..b1a88cdafa 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 4492cda3f3..7ec446b9fd 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Castle.java index a85192d134..6274e80bd4 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Siege.java index 43c75aba99..a328c612cd 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index f63b96cccf..ae3afaba5c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 5751666826..d9a271f737 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index cacd0f0b88..e986f124a7 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c379f83677..8296d88938 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_02.5_Underground/dist/game/config/Server.ini b/L2J_Mobius_02.5_Underground/dist/game/config/Server.ini index 81047aa753..86a470ff75 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/config/Server.ini +++ b/L2J_Mobius_02.5_Underground/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 89425b0d85..37bf53671e 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 3066ed9084..5a35c8057a 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index abe24e1589..14116e52a6 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index 6314296cb5..d5728d9746 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index b924b2a79e..76c3285211 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index e1ed5dde62..1fc838315f 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 974bc26b20..4ad4b0af70 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatGludinRune.java index 20cdfaff58..1127878d58 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_02.5_Underground/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/Config.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/Config.java index c36e415da3..9ff8c88b29 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/Config.java @@ -449,7 +449,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1440,9 +1442,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java similarity index 76% rename from L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java rename to L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java index 7d85dca00e..5130f7152e 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -14,13 +14,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.logging.Logger; +import org.l2jmobius.Config; + /** * @author NB4L1 */ @@ -29,22 +31,22 @@ public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) { if (executor.isShutdown()) { return; } - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) { - new Thread(r).start(); + new Thread(runnable).start(); } else { - r.run(); + runnable.run(); } } } diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/RunnableWrapper.java similarity index 91% rename from L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java rename to L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/RunnableWrapper.java index e05addb99a..43671b933d 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -14,13 +14,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.lang.Thread.UncaughtExceptionHandler; -/** - * @author Mobius - */ public class RunnableWrapper implements Runnable { private final Runnable _runnable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/GameServer.java index d499bbddd0..30820c00a1 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/BotReportTable.java index e8529b0176..cf662110c5 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 3ebc968ea1..173a739728 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 6aec45a8a6..739f11fd6f 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index d3ba2adc74..56869a8f88 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 11d30da35d..e3db18c4c9 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java index 6665842655..b9705afe58 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 2be681f086..c8cebd17cc 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/Clan.java index 2df3f41273..5f01b11c10 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ebb01d6c06..bfe4327e3b 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index a8e37956d2..fbd9645cb5 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index f852953226..b1a88cdafa 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 4492cda3f3..7ec446b9fd 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Castle.java index a85192d134..6274e80bd4 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Siege.java index 4f77242ce0..3b5fc9d1e4 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 9ea84be2e6..77fb41d2bb 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index a651d45b47..503e8f27a3 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index cacd0f0b88..e986f124a7 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c379f83677..8296d88938 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index 0c7064aa35..06de8cefc1 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_03.0_Helios/dist/game/config/Server.ini b/L2J_Mobius_03.0_Helios/dist/game/config/Server.ini index f5c23c6087..699e8b7c0f 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/config/Server.ini +++ b/L2J_Mobius_03.0_Helios/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 89425b0d85..37bf53671e 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 3066ed9084..5a35c8057a 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index abe24e1589..14116e52a6 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index cfb80bbdd1..2632f8eecf 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index b924b2a79e..76c3285211 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java index f4673effa4..17af8b90ad 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java @@ -19,7 +19,7 @@ package quests.Q10537_KamaelDisarray; import java.util.HashSet; import java.util.Set; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Faction; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index e1ed5dde62..1fc838315f 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 974bc26b20..4ad4b0af70 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatGludinRune.java index 20cdfaff58..1127878d58 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_03.0_Helios/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/Config.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/Config.java index 7015651005..79f7d97f25 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/Config.java @@ -449,7 +449,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1453,9 +1455,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java similarity index 76% rename from L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java rename to L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java index 7d85dca00e..5130f7152e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -14,13 +14,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.logging.Logger; +import org.l2jmobius.Config; + /** * @author NB4L1 */ @@ -29,22 +31,22 @@ public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) { if (executor.isShutdown()) { return; } - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) { - new Thread(r).start(); + new Thread(runnable).start(); } else { - r.run(); + runnable.run(); } } } diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/RunnableWrapper.java similarity index 91% rename from L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java rename to L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/RunnableWrapper.java index e05addb99a..43671b933d 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -14,13 +14,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.lang.Thread.UncaughtExceptionHandler; -/** - * @author Mobius - */ public class RunnableWrapper implements Runnable { private final Runnable _runnable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/GameServer.java index d499bbddd0..30820c00a1 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/BotReportTable.java index e8529b0176..cf662110c5 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 6aec45a8a6..739f11fd6f 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index d3ba2adc74..56869a8f88 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 11d30da35d..e3db18c4c9 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java index dc006b4772..80c6c72be0 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 557b5fee6b..3f802bca4d 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/Clan.java index 2df3f41273..5f01b11c10 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ebb01d6c06..bfe4327e3b 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index a3338a63d6..4dce728c9b 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index f852953226..b1a88cdafa 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 4492cda3f3..7ec446b9fd 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Castle.java index a85192d134..6274e80bd4 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Siege.java index 4f77242ce0..3b5fc9d1e4 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 9ea84be2e6..77fb41d2bb 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index a651d45b47..503e8f27a3 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index cacd0f0b88..e986f124a7 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c379f83677..8296d88938 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index 0c7064aa35..06de8cefc1 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/config/Server.ini b/L2J_Mobius_04.0_GrandCrusade/dist/game/config/Server.ini index bab2b45d5b..35c19dbf6c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/config/Server.ini +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 89425b0d85..37bf53671e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 3066ed9084..5a35c8057a 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 756269057f..ddf206eba9 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index cfb80bbdd1..2632f8eecf 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index b924b2a79e..76c3285211 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java index f4673effa4..17af8b90ad 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java @@ -19,7 +19,7 @@ package quests.Q10537_KamaelDisarray; import java.util.HashSet; import java.util.Set; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Faction; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index f3456e5205..1d76f0cb91 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index c5aef0d894..d4a27a72b6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatGludinRune.java index 20cdfaff58..1127878d58 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_04.0_GrandCrusade/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/Config.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/Config.java index f8c86c53b9..c08f72e8b2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/Config.java @@ -443,7 +443,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1440,9 +1442,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java similarity index 76% rename from L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java rename to L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java index 7d85dca00e..5130f7152e 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -14,13 +14,15 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.logging.Logger; +import org.l2jmobius.Config; + /** * @author NB4L1 */ @@ -29,22 +31,22 @@ public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) { if (executor.isShutdown()) { return; } - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) { - new Thread(r).start(); + new Thread(runnable).start(); } else { - r.run(); + runnable.run(); } } } diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/RunnableWrapper.java similarity index 91% rename from L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java rename to L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/RunnableWrapper.java index e05addb99a..43671b933d 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -14,13 +14,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.l2jmobius.commons.concurrent; +package org.l2jmobius.commons.threads; import java.lang.Thread.UncaughtExceptionHandler; -/** - * @author Mobius - */ public class RunnableWrapper implements Runnable { private final Runnable _runnable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/GameServer.java index dfd90ff9be..b03ddc024d 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/BotReportTable.java index 9dc72ba1e3..9345d978a2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index bebfc625c2..b8c6dd4354 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 11d30da35d..e3db18c4c9 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java index dc006b4772..80c6c72be0 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 74df939926..a6b529b903 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -44,8 +44,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/Clan.java index 2df3f41273..5f01b11c10 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ebb01d6c06..bfe4327e3b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index a3338a63d6..4dce728c9b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 545a20a037..00a6071969 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Castle.java index a85192d134..6274e80bd4 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Siege.java index 4f77242ce0..3b5fc9d1e4 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 9ea84be2e6..77fb41d2bb 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 92f96ef72e..6427291d5b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c379f83677..8296d88938 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/config/Server.ini b/L2J_Mobius_05.0_Salvation/dist/game/config/Server.ini index d923afe204..5fbede3812 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/config/Server.ini +++ b/L2J_Mobius_05.0_Salvation/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 89425b0d85..37bf53671e 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 3066ed9084..5a35c8057a 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java index 261bb8dd74..256ffc4a21 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java @@ -17,7 +17,7 @@ package ai.others.Tutorial; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventType; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java index bdeb746885..6c6f735e6a 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShortcutType; import org.l2jmobius.gameserver.model.Shortcut; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 756269057f..ddf206eba9 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index cfb80bbdd1..2632f8eecf 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index b924b2a79e..76c3285211 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java index f4673effa4..17af8b90ad 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java @@ -19,7 +19,7 @@ package quests.Q10537_KamaelDisarray; import java.util.HashSet; import java.util.Set; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Faction; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index f3456e5205..1d76f0cb91 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index c5aef0d894..d4a27a72b6 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatGludinRune.java index fad7db40ce..18b7fa36b4 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index a70a889705..8af0e2945e 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index ddbffc4597..16cc44ce31 100644 --- a/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_05.0_Salvation/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/Config.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/Config.java index 010215bd9f..e86734f340 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/Config.java @@ -438,7 +438,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1435,9 +1437,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/GameServer.java index 1c3fc93079..c38066dfa0 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/Shutdown.java index 1bdbbdf471..694e0b9df2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/BotReportTable.java index 387bff01e0..87f006bf53 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/ItemTable.java index a27b3d89a2..dc0babaa33 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index f6ad1cfa1f..adf248315c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index 80bfff5fdb..99169401fe 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index b059f3cbf2..fd87e492c5 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/CursedWeapon.java index e647f880d7..0849ab6de7 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Duel.java index 582a9caf97..8c19926bea 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Party.java index 0016963986..999a9f48c2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java index d496fa5b78..8da6fad568 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java index 25dc27f38a..b286fa417d 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index ccb6d39399..5784a69ce8 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index e5830a8601..56f530e61c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -44,8 +44,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/Clan.java index 7cdcf78fdb..69b9955183 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index 9641d24f79..b9e9a55353 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 28e0bec967..12ef37b045 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 08395b8b7c..94daf70345 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a976a4a7bd..6c543cd17c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index e3b805a944..33b37c5ad2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 2c90c22efb..9452f89718 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Castle.java index 62a5994ee6..eca225f9b4 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 218202d828..3d78273ac0 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Siege.java index b8bc95fcc4..45800ebebc 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 3d92cfbcc8..846bf80d2f 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index ed9fa7db03..0ae327a509 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index 01d731c514..1a65a4f080 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java index 7b491443ba..bd37cea9b9 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/config/Server.ini b/L2J_Mobius_05.5_EtinasFate/dist/game/config/Server.ini index 343dd520b1..0daaba3df0 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/config/Server.ini +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 63f6ac589c..88883cff26 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index d1460c9efe..7ed41c0a05 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java index 2357d9625e..925f88b778 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java index 261bb8dd74..256ffc4a21 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java @@ -17,7 +17,7 @@ package ai.others.Tutorial; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventType; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java index bdeb746885..6c6f735e6a 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShortcutType; import org.l2jmobius.gameserver.model.Shortcut; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 756269057f..ddf206eba9 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index cfb80bbdd1..2632f8eecf 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index b924b2a79e..76c3285211 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java index f4673effa4..17af8b90ad 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java @@ -19,7 +19,7 @@ package quests.Q10537_KamaelDisarray; import java.util.HashSet; import java.util.Set; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Faction; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index f3456e5205..1d76f0cb91 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index c5aef0d894..d4a27a72b6 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatGludinRune.java index 20cdfaff58..1127878d58 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/Config.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/Config.java index 4677f4b611..40ec7a3da4 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/Config.java @@ -438,7 +438,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1442,9 +1444,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/GameServer.java index 1c3fc93079..c38066dfa0 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/BotReportTable.java index 9dc72ba1e3..9345d978a2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/ItemTable.java index 773e0a482d..e7ca71b25d 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index 1d4c23989c..f5e3eca3c7 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index bebfc625c2..b8c6dd4354 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index 80bfff5fdb..99169401fe 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/CursedWeapon.java index e8356c8e45..380600d408 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Party.java index 0016963986..999a9f48c2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java index d496fa5b78..8da6fad568 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java index 25dc27f38a..b286fa417d 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 4dff873e9b..3467dc71d3 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -44,8 +44,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/Clan.java index 7cdcf78fdb..69b9955183 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index 545f226e2c..c244aa633a 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 28e0bec967..12ef37b045 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index e3b805a944..33b37c5ad2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Castle.java index 62a5994ee6..eca225f9b4 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Siege.java index a207a925f4..f30499f658 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 3d92cfbcc8..846bf80d2f 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index ad4727da29..7b69b68d0b 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index d175d8cfaf..97bb80b76d 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java index 7b491443ba..bd37cea9b9 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/config/Server.ini b/L2J_Mobius_06.0_Fafurion/dist/game/config/Server.ini index 4e21050262..12cbbf960f 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/config/Server.ini +++ b/L2J_Mobius_06.0_Fafurion/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 63f6ac589c..88883cff26 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index d1460c9efe..7ed41c0a05 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java index 2357d9625e..925f88b778 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java index 261bb8dd74..256ffc4a21 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/ai/others/Tutorial/Tutorial.java @@ -17,7 +17,7 @@ package ai.others.Tutorial; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventType; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index edd1ea1485..36e2c3a860 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java index bdeb746885..6c6f735e6a 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShortcutType; import org.l2jmobius.gameserver.model.Shortcut; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 756269057f..ddf206eba9 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java index cfb80bbdd1..2632f8eecf 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10292_SevenSignsGirlOfDoubt/Q10292_SevenSignsGirlOfDoubt.java @@ -16,7 +16,7 @@ */ package quests.Q10292_SevenSignsGirlOfDoubt; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java index b924b2a79e..76c3285211 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10369_NoblesseSoulTesting/Q10369_NoblesseSoulTesting.java @@ -17,7 +17,7 @@ package quests.Q10369_NoblesseSoulTesting; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java index f4673effa4..17af8b90ad 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java @@ -19,7 +19,7 @@ package quests.Q10537_KamaelDisarray; import java.util.HashSet; import java.util.Set; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Faction; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java index f3456e5205..1d76f0cb91 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/quests/Q10742_AFurryFriend/Q10742_AFurryFriend.java @@ -16,7 +16,7 @@ */ package quests.Q10742_AFurryFriend; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.instancemanager.WalkingManager; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipController.java index 1a5fdea15c..cbda8a8cfa 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index c5aef0d894..d4a27a72b6 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatGludinRune.java index 20cdfaff58..1127878d58 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_06.0_Fafurion/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/Config.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/Config.java index d44af08a57..bd8b4a65e5 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/Config.java @@ -439,7 +439,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1464,9 +1466,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/GameServer.java index 4d9866e8bc..d00f79ee37 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/BotReportTable.java index 9dc72ba1e3..9345d978a2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/ItemTable.java index 773e0a482d..e7ca71b25d 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index 1d4c23989c..f5e3eca3c7 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index bebfc625c2..b8c6dd4354 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index 80bfff5fdb..99169401fe 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/CursedWeapon.java index e8356c8e45..380600d408 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Party.java index 0016963986..999a9f48c2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java index d496fa5b78..8da6fad568 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java index 25dc27f38a..b286fa417d 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 576511c083..0df727b39b 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -44,8 +44,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/Clan.java index 7cdcf78fdb..69b9955183 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index 545f226e2c..c244aa633a 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 28e0bec967..12ef37b045 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index e3b805a944..33b37c5ad2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Castle.java index 62a5994ee6..eca225f9b4 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Siege.java index a207a925f4..f30499f658 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 3d92cfbcc8..846bf80d2f 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index ad4727da29..7b69b68d0b 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index d175d8cfaf..97bb80b76d 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java index 7b491443ba..bd37cea9b9 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/config/Server.ini b/L2J_Mobius_07.0_PreludeOfWar/dist/game/config/Server.ini index b739db22c0..8d1874d0c6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/config/Server.ini +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 63f6ac589c..88883cff26 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 0a8645cc39..f7b178a381 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java index 2357d9625e..925f88b778 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index 4eb1e8cd22..ae5a9477bd 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index b619f59ab7..52bf40cadc 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index a27e2116cb..dcfea4c7ba 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java index bdeb746885..6c6f735e6a 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShortcutType; import org.l2jmobius.gameserver.model.Shortcut; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 756269057f..ddf206eba9 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index e8d85ab3f7..2276570c7c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java index f4673effa4..17af8b90ad 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/quests/Q10537_KamaelDisarray/Q10537_KamaelDisarray.java @@ -19,7 +19,7 @@ package quests.Q10537_KamaelDisarray; import java.util.HashSet; import java.util.Set; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Faction; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipController.java index 6ec8e908f9..009b8a8173 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index c5aef0d894..d4a27a72b6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatGludinRune.java index 37d2f0bcd8..55780c978a 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_07.0_PreludeOfWar/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/Config.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/Config.java index 30a165b510..55d27c7b06 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/Config.java @@ -439,7 +439,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1472,9 +1474,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/GameServer.java index b44ce218b5..87fadee69e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/BotReportTable.java index 9dc72ba1e3..9345d978a2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/ItemTable.java index 773e0a482d..e7ca71b25d 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index 1d4c23989c..f5e3eca3c7 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index bebfc625c2..b8c6dd4354 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index 80bfff5fdb..99169401fe 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/RankManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/RankManager.java index f4c53dca15..4d4410b987 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/RankManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/RankManager.java @@ -25,8 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 1050e93bba..90ede8f14a 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/CursedWeapon.java index d5c37da80e..8505a16c60 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Party.java index c2a89c5375..ada990c7bb 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 826688bfbd..f5d70e58f1 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java index 81c4debb1b..5a2d32a928 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Npc.java index ae62ac9508..9bac4deecc 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 65e6690344..300dbf3b10 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/Clan.java index 68bbf44fc1..b797478457 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index f763b5b0fb..c3333ca839 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 28e0bec967..12ef37b045 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index c9047c31f1..197a15f962 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index bf9f54ddeb..cf4f5e7475 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Castle.java index 62a5994ee6..eca225f9b4 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index a591b8a55e..0d23c9e5d2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Siege.java index 98718a6e40..c2a51fd513 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index a3c400df21..53e8c48395 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5e2e57130b..83cf3844e6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 16dafd9bb5..df386c0245 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index 2d34c23118..b03f2213a7 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index 8056f32e06..34eebbd85e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index d175d8cfaf..97bb80b76d 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java index 7b491443ba..bd37cea9b9 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 5f06215cfc..fc462beecb 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java index 9ebfcebd0c..e2f8581c3c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java index d96189b956..da0bc72581 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ActionData; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.handler.IPlayerActionHandler; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/config/Server.ini b/L2J_Mobius_08.2_Homunculus/dist/game/config/Server.ini index d564479ff8..c0e6b80f6b 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/config/Server.ini +++ b/L2J_Mobius_08.2_Homunculus/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 0a8645cc39..f7b178a381 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java index 8304f72d48..e6617f3a05 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index b64e1917fe..55e3e366bd 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index 4b0b172468..9a0465fc5f 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index fb4239a70a..ee185c5e19 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java index bdeb746885..6c6f735e6a 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShortcutType; import org.l2jmobius.gameserver.model.Shortcut; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 6cc7fa2e57..70d2aa36f9 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index c146173698..3a9e535407 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipController.java index c35e706d8e..c0b74a42bb 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 2232f8171a..5c15304de1 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatGludinRune.java index 37d2f0bcd8..55780c978a 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/Config.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/Config.java index bfed123025..b2f23f1deb 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/Config.java @@ -439,7 +439,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1470,9 +1472,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/GameServer.java index e2a212c71f..3c2a05474e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/BotReportTable.java index 9dc72ba1e3..9345d978a2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/ItemTable.java index 71395876df..8cb8d8b9e8 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index 1d4c23989c..f5e3eca3c7 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index bebfc625c2..b8c6dd4354 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index 80bfff5fdb..99169401fe 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/RankManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/RankManager.java index 8538f2363f..4b7233cbaf 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/RankManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/RankManager.java @@ -25,8 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 1050e93bba..90ede8f14a 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/CursedWeapon.java index d5c37da80e..8505a16c60 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Party.java index c2a89c5375..ada990c7bb 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 826688bfbd..f5d70e58f1 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java index ecfe93fa8a..a6d0e6b7af 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Npc.java index b3f7db3fa1..ad180ad599 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index ab0ca64c8c..2ed851a98d 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 2f8e8c29fa..55ef1aeef9 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/Clan.java index 68bbf44fc1..b797478457 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index f763b5b0fb..c3333ca839 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 28e0bec967..12ef37b045 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index c9047c31f1..197a15f962 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 2218c97468..144f97ff18 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Castle.java index 62a5994ee6..eca225f9b4 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index a591b8a55e..0d23c9e5d2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Siege.java index b5bbaf4a6b..c3adeae256 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index a3c400df21..53e8c48395 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5e2e57130b..83cf3844e6 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index dc6f7807f2..a238389152 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index 2d34c23118..b03f2213a7 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index 8056f32e06..34eebbd85e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c2afc19e91..2bd1da55d7 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java index 7b491443ba..bd37cea9b9 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 5f06215cfc..fc462beecb 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java index 9ebfcebd0c..e2f8581c3c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java index d96189b956..da0bc72581 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ActionData; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.handler.IPlayerActionHandler; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/Server.ini b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/Server.ini index 0eecebbfa1..ab75fea39c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/Server.ini +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index d95e8c5084..34877a87a7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index 3065f97f34..b1d2baff38 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java index e6bc508645..da3c567447 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/GainakUnderground/GainakSiege.java @@ -17,7 +17,7 @@ package ai.areas.GainakUnderground; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java index 03ee3fca70..d4e62ab997 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/Rune/AltarOfSacrifice/AltarOfSacrifice.java @@ -16,7 +16,7 @@ */ package ai.areas.Rune.AltarOfSacrifice; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java index 0a8645cc39..f7b178a381 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/AwakeningMaster/AwakeningMaster.java @@ -20,7 +20,7 @@ import java.util.EnumMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.data.xml.SkillTreeData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java index 78d40ed132..184ccad42b 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/areas/TalkingIsland/HarnakUndergroundRuinsZone/HarnakUndergroundRuinsZone.java @@ -22,7 +22,7 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java index 8304f72d48..e6617f3a05 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/EtisVanEtina/EtisVanEtina.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.Movie; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Helios/Helios.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Helios/Helios.java index 7e5c37bf69..47a8e86d9d 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Helios/Helios.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Helios/Helios.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java index f0200d1563..637a80b1fc 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Lindvior/Lindvior.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java index b64e1917fe..55e3e366bd 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/bosses/Trasken/Trasken.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/EnergySeeds.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/EnergySeeds.java index 4cf59b5d0b..8dd3852b45 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/EnergySeeds.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/EnergySeeds.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index 960808ba5e..2b82a9c3f6 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -18,7 +18,7 @@ package ai.others.NpcBuffers; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index 4b0b172468..9a0465fc5f 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index fb4239a70a..ee185c5e19 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java index bdeb746885..6c6f735e6a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/ReplaceSkillBySkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShortcutType; import org.l2jmobius.gameserver.model.Shortcut; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java index 47d78ca00f..3bb367f892 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java index 6cc7fa2e57..70d2aa36f9 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/AltarOfShilen/AltarOfShilen.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java index 6a07191990..15c5af2f72 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/CastleDungeon/CastleDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java index c146173698..3a9e535407 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/ChambersOfDelusion/ChamberOfDelusion.java @@ -25,7 +25,7 @@ import java.util.logging.Level; import java.util.stream.IntStream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java index ea8ca11b83..9d9c31ea60 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/instances/FortressDungeon/FortressDungeon.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipController.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipController.java index c35e706d8e..c0b74a42bb 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipController.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipController.java @@ -19,7 +19,7 @@ package vehicles; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 2232f8171a..5c15304de1 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatGludinRune.java index 37d2f0bcd8..55780c978a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/Config.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/Config.java index 620659934a..0b1cb6f53b 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/Config.java @@ -439,7 +439,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1470,9 +1472,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/GameServer.java index f8c8f6f1b6..81f09f2b7d 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/GameServer.java @@ -31,9 +31,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/Shutdown.java index b186bdf069..9e0bc3126c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/CreatureAI.java index a6dc3cb68d..dc71f92bf0 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/BotReportTable.java index 9dc72ba1e3..9345d978a2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/ItemTable.java index 71395876df..8cb8d8b9e8 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 10f7e0b311..8050c13b90 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index 1d4c23989c..f5e3eca3c7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index bebfc625c2..b8c6dd4354 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index 80bfff5fdb..99169401fe 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/RankManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/RankManager.java index 8538f2363f..4b7233cbaf 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/RankManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/RankManager.java @@ -25,8 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 1050e93bba..90ede8f14a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/CursedWeapon.java index d5c37da80e..8505a16c60 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Party.java index c2a89c5375..ada990c7bb 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 826688bfbd..f5d70e58f1 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java index ecfe93fa8a..a6d0e6b7af 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Npc.java index b3f7db3fa1..ad180ad599 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index ab0ca64c8c..2ed851a98d 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 561efcb002..3f701892a7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 0607b51090..656a874835 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/Clan.java index 68bbf44fc1..b797478457 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index f763b5b0fb..c3333ca839 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 28e0bec967..12ef37b045 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index c9047c31f1..197a15f962 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 2218c97468..144f97ff18 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Castle.java index 62a5994ee6..eca225f9b4 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index a591b8a55e..0d23c9e5d2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Siege.java index b5bbaf4a6b..c3adeae256 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index a3c400df21..53e8c48395 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5e2e57130b..83cf3844e6 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 66e60fe9f1..02536bcd12 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index 2d34c23118..b03f2213a7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index 8056f32e06..34eebbd85e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c2afc19e91..2bd1da55d7 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java index 7b491443ba..bd37cea9b9 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/clientpackets/pledgeV2/RequestExPledgeMissionReward.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pledgeV2; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java index ce46370120..8cebe84115 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/network/serverpackets/ExAlterSkillRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.serverpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketWriter; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.OutgoingPackets; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 5f06215cfc..fc462beecb 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java index 9ebfcebd0c..e2f8581c3c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java index d96189b956..da0bc72581 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ActionData; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.handler.IPlayerActionHandler; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_C1_HarbingersOfWar/dist/config/threadpool.ini b/L2J_Mobius_C1_HarbingersOfWar/dist/config/threadpool.ini index a184d8c8dd..e0fca19a7d 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/dist/config/threadpool.ini +++ b/L2J_Mobius_C1_HarbingersOfWar/dist/config/threadpool.ini @@ -2,10 +2,14 @@ # Threadpool Settings # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 \ No newline at end of file +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 + +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 \ No newline at end of file diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/Config.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/Config.java index 07a0022ba8..c7989d559d 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/Config.java @@ -71,7 +71,9 @@ public class Config public static List KARMA_PROTECTED_ITEMS; // ThreadPool public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; // Npc public static boolean SHOW_NPC_LEVEL; public static boolean SHOW_NPC_AGGRESSION; @@ -119,8 +121,18 @@ public class Config // Load threadpool config file (if exists) final PropertiesParser threadpoolSettings = new PropertiesParser(THREADPOOL_CONFIG_FILE); - SCHEDULED_THREAD_POOL_COUNT = threadpoolSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = threadpoolSettings.getInt("InstantThreadPoolCount", 20); + SCHEDULED_THREAD_POOL_COUNT = threadpoolSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = threadpoolSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = threadpoolSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = threadpoolSettings.getInt("ThreadsPerInstantThreadPool", 2); // Load NPC config file (if exists) final PropertiesParser npcSettings = new PropertiesParser(NPC_CONFIG_FILE); diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/GameServer.java index 20e4cbc3aa..c26b8d0a02 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/GameServer.java @@ -52,7 +52,7 @@ import org.l2jmobius.gameserver.handler.skillhandlers.HealSkill; import org.l2jmobius.gameserver.managers.GmListManager; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.network.ClientThread; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; import org.l2jmobius.loginserver.LoginController; public class GameServer extends Thread diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/PetSummon.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/PetSummon.java index 4c1f4806f6..3188491247 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/PetSummon.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/PetSummon.java @@ -31,7 +31,7 @@ import org.l2jmobius.gameserver.network.serverpackets.NpcInfo; import org.l2jmobius.gameserver.network.serverpackets.PetInfo; import org.l2jmobius.gameserver.network.serverpackets.PetItemList; import org.l2jmobius.gameserver.templates.Npc; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; public class PetSummon implements IItemHandler { diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java index 2fab9a7dbd..62394e478c 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java @@ -25,7 +25,7 @@ import org.l2jmobius.gameserver.model.actor.instance.ItemInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.serverpackets.MagicSkillUser; import org.l2jmobius.gameserver.network.serverpackets.SetupGauge; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; public class ScrollOfEscape implements IItemHandler { diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Potion.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Potion.java index da3bcf38bb..2ec990e9bd 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Potion.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Potion.java @@ -20,7 +20,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.gameserver.model.actor.Creature; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; public class Potion extends WorldObject { diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Spawn.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Spawn.java index 0b4c99d1c9..257494dd5f 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Spawn.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/Spawn.java @@ -24,7 +24,7 @@ import org.l2jmobius.gameserver.IdManager; import org.l2jmobius.gameserver.model.actor.instance.MonsterInstance; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; import org.l2jmobius.gameserver.templates.Npc; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; import org.l2jmobius.util.Rnd; public class Spawn diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 97383e6186..4da0011814 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -36,7 +36,7 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.serverpackets.DropItem; import org.l2jmobius.gameserver.templates.Npc; import org.l2jmobius.gameserver.templates.Weapon; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; import org.l2jmobius.util.Rnd; public class Attackable extends NpcInstance diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java index 06ab092755..5b63d6a8a8 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -46,7 +46,7 @@ import org.l2jmobius.gameserver.network.serverpackets.StopMove; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; import org.l2jmobius.gameserver.network.serverpackets.TeleportToLocation; import org.l2jmobius.gameserver.templates.Weapon; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; import org.l2jmobius.util.Chronos; import org.l2jmobius.util.Rnd; diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java index a3aa117ad9..a6238b1bc9 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java @@ -37,7 +37,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SetToLocation; import org.l2jmobius.gameserver.network.serverpackets.StatusUpdate; import org.l2jmobius.gameserver.templates.Npc; import org.l2jmobius.gameserver.templates.Weapon; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; public class NpcInstance extends Creature { diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 664c574d3f..06fc600aa2 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -47,7 +47,7 @@ import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; import org.l2jmobius.gameserver.network.serverpackets.UserInfo; import org.l2jmobius.gameserver.templates.Npc; import org.l2jmobius.gameserver.templates.Weapon; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; public class PetInstance extends Creature { diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index f4fb1af48b..58355d2de7 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -80,7 +80,7 @@ import org.l2jmobius.gameserver.templates.Armor; import org.l2jmobius.gameserver.templates.CharTemplate; import org.l2jmobius.gameserver.templates.Item; import org.l2jmobius.gameserver.templates.Weapon; -import org.l2jmobius.gameserver.threadpool.ThreadPool; +import org.l2jmobius.gameserver.threads.ThreadPool; import org.l2jmobius.util.Chronos; import org.l2jmobius.util.Rnd; diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/ThreadPool.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/ThreadPool.java deleted file mode 100644 index ed93f5d412..0000000000 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/ThreadPool.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -package org.l2jmobius.gameserver.threadpool; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/RejectedExecutionHandlerImpl.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/RejectedExecutionHandlerImpl.java similarity index 77% rename from L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/RejectedExecutionHandlerImpl.java rename to L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/RejectedExecutionHandlerImpl.java index 435ade2c54..66d14b1d7d 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/RejectedExecutionHandlerImpl.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/RejectedExecutionHandlerImpl.java @@ -15,13 +15,15 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -package org.l2jmobius.gameserver.threadpool; +package org.l2jmobius.gameserver.threads; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.logging.Logger; +import org.l2jmobius.Config; + /** * @author NB4L1 */ @@ -30,22 +32,22 @@ public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) { if (executor.isShutdown()) { return; } - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) { - new Thread(r).start(); + new Thread(runnable).start(); } else { - r.run(); + runnable.run(); } } } diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/RunnableWrapper.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/RunnableWrapper.java similarity index 91% rename from L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/RunnableWrapper.java rename to L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/RunnableWrapper.java index 45c694c6fe..c0920a3531 100644 --- a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threadpool/RunnableWrapper.java +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/RunnableWrapper.java @@ -15,13 +15,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -package org.l2jmobius.gameserver.threadpool; +package org.l2jmobius.gameserver.threads; import java.lang.Thread.UncaughtExceptionHandler; -/** - * @author Mobius - */ public class RunnableWrapper implements Runnable { private final Runnable _runnable; diff --git a/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/ThreadPool.java b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/ThreadPool.java new file mode 100644 index 0000000000..4d88aacf5e --- /dev/null +++ b/L2J_Mobius_C1_HarbingersOfWar/java/org/l2jmobius/gameserver/threads/ThreadPool.java @@ -0,0 +1,215 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +package org.l2jmobius.gameserver.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/main/Server.ini b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/main/Server.ini index df85355d87..d806893ddb 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/main/Server.ini +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/config/main/Server.ini @@ -122,16 +122,20 @@ ServerListClock = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # --------------------------------------------------------------------------- diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Antharas.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Antharas.java index 8d52a53a8b..5fba441949 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Antharas.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Antharas.java @@ -23,7 +23,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Baium.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Baium.java index 5d39638577..75732342e7 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Baium.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Baium.java @@ -26,7 +26,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Valakas.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Valakas.java index 09d52c194c..47d0f4e1f1 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Valakas.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Valakas.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Zaken.java b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Zaken.java index 5dc6cce784..ae7f6132ee 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Zaken.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/dist/game/data/scripts/ai/bosses/Zaken.java @@ -19,7 +19,7 @@ package ai.bosses; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java index 713f9df1f1..1adc53b6f4 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/Config.java @@ -1125,7 +1125,9 @@ public class Config public static int MIN_PROTOCOL_REVISION; public static int MAX_PROTOCOL_REVISION; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean DEADLOCK_DETECTOR; public static int DEADLOCK_CHECK_INTERVAL; @@ -1219,9 +1221,23 @@ public class Config { throw new Error("MinProtocolRevision is bigger than MaxProtocolRevision in server configuration file."); } - SCHEDULED_THREAD_POOL_COUNT = serverConfig.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverConfig.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverConfig.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverConfig.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverConfig.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverConfig.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverConfig.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverConfig.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } DEADLOCK_DETECTOR = serverConfig.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverConfig.getInt("DeadLockCheckInterval", 20); RESTART_ON_DEADLOCK = serverConfig.getBoolean("RestartOnDeadlock", false); diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/GameServer.java index 9d27e12fd0..8b225ae4cf 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/GameServer.java @@ -27,9 +27,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/Shutdown.java index c048ff319a..991a906a5a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/Shutdown.java @@ -19,9 +19,9 @@ package org.l2jmobius.gameserver; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SchemeBufferTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.OfflineTraderTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/DoorAI.java index 060c20ba96..39c5d2eaa3 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java index 789bfba03e..3fcbec25ae 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java @@ -26,7 +26,7 @@ import java.util.List; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.Effect; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java index 39f38fc868..60db4fc1f1 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.ai; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.WalkerRouteData; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java index 53223e367b..43eb34037f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java @@ -24,7 +24,7 @@ import java.util.Collection; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.Effect; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 2c97438dce..603ee3936d 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/ItemTable.java index 940aaa5e4e..0389a5a16a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -30,8 +30,8 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.PetDataTable; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index f38cd0845a..99cb291f6a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -28,8 +28,8 @@ import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.FortManager; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java index 2ac02f1987..6bbeb35c8b 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java @@ -23,8 +23,8 @@ import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.model.StoreTradeList; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java index b25fd06317..da283542ea 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java @@ -27,8 +27,8 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java index 6a50cda222..4bdefea5e4 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.handler.admincommandhandlers; import java.util.NoSuchElementException; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java index 5423fbb847..d9fe58912b 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.handler.itemhandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java index bc4d412f7d..db78228991 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.handler.itemhandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.model.actor.Playable; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java index f226c9fa03..d6e5839b9d 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java @@ -24,7 +24,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IItemHandler; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java index 0ae9f810a3..56f89c1116 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.itemhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java index 927e6699d7..6ce4c11042 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.handler.itemhandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java index a2a9f4346b..c335acd8a5 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.itemhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.data.xml.SummonItemData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java index ab61da5954..540868ce4a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.handler.skillhandlers; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ISkillHandler; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java index 1f7eef2911..f0f3f04ae9 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java index d674bb0dd8..6ae8789803 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.usercommandhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.handler.IUserCommandHandler; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java index 4ae6a6c074..76a57f84a1 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.voicedcommandhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.olympiad.Olympiad; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java index a2462a826e..5b247ba798 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.handler.voicedcommandhandlers; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 1845fd8a55..a0ec72f4db 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ManorSeedData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java index 27525fa456..ddd1617d08 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java @@ -22,7 +22,7 @@ import java.util.Random; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index 13557aa5d4..4be2d32bb5 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java index d2e2ca557e..c38e026bdd 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java @@ -29,8 +29,8 @@ import java.util.Set; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.data.sql.SpawnTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 76393c4d7e..a81f44e60d 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -27,8 +27,8 @@ import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index c26dcf1eb8..24b5dd9ea4 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java index e3ca6246e8..e21ff44b20 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java @@ -23,8 +23,8 @@ import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.handler.AutoChatHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index ce1beb4a05..809421a002 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java index ebaff1dd67..d0ace3268f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index c1a3018a85..14b0ab5401 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -24,7 +24,7 @@ import java.util.WeakHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java index 33e84d5e53..ff0bf44c27 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/DM.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/DM.java index 54d50bb64f..3f5119dfda 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/DM.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/DM.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java index e4ffbef920..933879cd42 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; /** diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java index 386b3859a0..f4a5d09942 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java index 0f38f23764..c4560704ed 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java @@ -24,8 +24,8 @@ import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java index 2e020462c9..675656ecc4 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java @@ -24,8 +24,8 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 63a2386445..70c6d703ce 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -31,8 +31,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/DropProtection.java index 41a00ed362..c985a296b8 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Effect.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Effect.java index 69a466ea46..6200faf24e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Effect.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Effect.java @@ -23,7 +23,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Skill.SkillType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Fishing.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Fishing.java index b05d81538e..cec6ce0a83 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Fishing.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Fishing.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.model.actor.instance.PenaltyMonsterInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Party.java index b1d7f3f8cb..7b4e2d3b2a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Party.java @@ -22,7 +22,7 @@ import java.util.NoSuchElementException; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Potion.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Potion.java index f2d07650af..db162a1b77 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Potion.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Potion.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; public class Potion extends WorldObject diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Radar.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Radar.java index 9f95ed3ab5..34152f520f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Radar.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Radar.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.serverpackets.RadarControl; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Request.java index 77661c0744..3823a2ed60 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/WorldRegion.java index 517c67d281..3271be9664 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -24,7 +24,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.FortSiegeGuardAI; import org.l2jmobius.gameserver.ai.SiegeGuardAI; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java index f298680007..c0e1be7d7f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java index 2e989ea574..965489752d 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -30,7 +30,7 @@ import java.util.concurrent.Future; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java index 391759a6e0..589058f2a0 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java index 337fe51475..153619469a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.knownlist.BoatKnownList; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java index 75dbd86ada..0bb3282df1 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java index 7c7c2746dc..7759492d44 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.StringTokenizer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java index 5a08018ef2..4ecfc892ab 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index 306b28b02c..7da6741911 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java index 5b2ad745ed..6c285c8e4f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; import org.l2jmobius.gameserver.instancemanager.RaidBossPointsManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java index 1d19937b92..14b8e7c9fb 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java index aa0f0ca486..5dac4f1292 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java index 92fa328062..5d25a19265 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java @@ -23,8 +23,8 @@ import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.CastleManorManager; -import org.l2jmobius.gameserver.instancemanager.TradeManager; import org.l2jmobius.gameserver.instancemanager.CastleManorManager.SeedProduction; +import org.l2jmobius.gameserver.instancemanager.TradeManager; import org.l2jmobius.gameserver.model.StoreTradeList; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java index 46810e29ce..b4f332a294 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 9f5a7045e3..e38e269e8e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -23,8 +23,8 @@ import java.util.concurrent.Future; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.PetDataTable; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index ece6af81d2..ab88fde2d6 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -35,8 +35,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java index 2c63c5e727..b0cbd71e62 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java index 8a2acbe331..6bf8e9bbf9 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.RaidBossStatus; import org.l2jmobius.gameserver.instancemanager.RaidBossPointsManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java index ccba9aa464..40dd7c97c6 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java index 36ef83003a..0c2c79e7a4 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java index 450006e3ce..43792138b0 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index a9ec04eada..361e2b12dc 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java index f5a1d457d8..19f8e5d068 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java index 5e54341a0b..81b97f0b20 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java index 0e3b7e0295..b79a05a2be 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.knownlist; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index 5feccb8bc3..5f53a5362f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArraySet; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index 4e448b7644..b0fdd15f6e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.network.serverpackets.CreatureSay; import org.l2jmobius.gameserver.util.Broadcast; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 3469c6cafc..0572db2d15 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -40,8 +40,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.instancemanager.OlympiadStadiaManager; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java index 5f2c8f9b71..52aae79019 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index b19eb67b03..e4e6f8c192 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index 60acfafa7d..e048bddf1b 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -26,8 +26,8 @@ import java.util.Map; import java.util.Map.Entry; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java index c81f136fc5..770528aa5c 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java @@ -24,8 +24,8 @@ import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.instancemanager.AuctionManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java index 8a85ac04a8..7f78b7f681 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java @@ -28,8 +28,8 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.handler.AutoChatHandler; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java index ced3e53cf1..35900321ac 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java @@ -28,8 +28,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Castle.java index 5d9bbf6dcd..5ee538f07d 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -27,8 +27,8 @@ import java.util.Map; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java index cea98acf88..4fc242c09b 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.siege; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.clan.Clan; import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Fort.java index 3868536075..abddff5ee3 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -24,8 +24,8 @@ import java.util.Calendar; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 72f7079c7f..ef02788666 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -24,8 +24,8 @@ import java.util.Calendar; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Siege.java index 0ea9311e9d..57a5c51328 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -28,8 +28,8 @@ import java.util.List; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java index 8603355011..788762b89a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java @@ -24,7 +24,7 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java index ed17a8af47..c87f8b3a04 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java @@ -29,8 +29,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java index a818176c97..8c4f05ea0a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java @@ -27,8 +27,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java index bb7e2c5246..02b8b17e9d 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java @@ -24,7 +24,7 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java index 56f3f76662..edb8f24604 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java @@ -33,8 +33,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index e60d5190b4..b557a5f6a0 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java index f10449c125..855360e499 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.WorldRegion; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 385eb1038f..e8b9fd2e4b 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 63f8578b63..6f0d1708c6 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.MapRegionData; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java index 310c01d667..574b7ef5f5 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/GameClient.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/GameClient.java index d93c8615fd..d9752b2133 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/GameClient.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/GameClient.java @@ -31,11 +31,11 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.network.ChannelInboundHandler; import org.l2jmobius.commons.network.ICrypt; import org.l2jmobius.commons.network.IIncomingPacket; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.LoginServerThread.SessionKey; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 2deb0ba167..a4246e2bff 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.MapRegionData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java index 39f9f5ae83..eb82bbeb26 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.instancemanager.TradeManager; import org.l2jmobius.gameserver.model.StoreTradeList; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java index 46cd344bed..ac37377aae 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java @@ -25,7 +25,7 @@ import javax.script.ScriptContext; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.script.DateRange; import org.l2jmobius.gameserver.script.IntList; import org.l2jmobius.gameserver.script.Parser; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 2c6d5dc00e..93e3b89e9e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.CubicInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index 031ae4a820..8f9e6e64ab 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index 6e35ed1a37..f08db08286 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.TradeManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index 8263c5653b..24893e3a17 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 6fe68dd94e..1c7aca973a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -22,7 +22,7 @@ import java.util.NoSuchElementException; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.RaidBossInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java index 8b003caecb..8577276892 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; /** * @author NB4L1 diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java index 62d1f34ac4..17324f4fcc 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java @@ -23,7 +23,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index bfbfd098f2..4270a666ad 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java index d751a89b76..81cc03de06 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.WorldRegion; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 7398341af7..faf21df771 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 98e9ce730f..5681527078 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index eb32d2a025..bb69b3ef6e 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; import org.l2jmobius.gameserver.model.spawn.Spawn; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index f54f77b176..10f6a14c08 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -38,8 +38,8 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; import org.l2jmobius.gameserver.taskmanager.tasks.TaskOlympiadSave; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/util/Util.java index 56625c628e..3bb3b00ae8 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/util/Util.java @@ -24,7 +24,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java index fa9adf348e..cd4fb8ff6a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java @@ -22,8 +22,8 @@ import java.util.logging.Formatter; import java.util.logging.LogRecord; import org.l2jmobius.Config; -import org.l2jmobius.commons.util.StringUtil; import org.l2jmobius.commons.util.CommonUtil; +import org.l2jmobius.commons.util.StringUtil; public class ConsoleLogFormatter extends Formatter { diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/GameStatusThread.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/GameStatusThread.java index 3b2a3aad30..22e6a7f350 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/GameStatusThread.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/GameStatusThread.java @@ -45,8 +45,8 @@ import java.util.StringTokenizer; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.Shutdown; diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/TelnetStatusThread.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/TelnetStatusThread.java index 255c1c285f..7c21bca02a 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/TelnetStatusThread.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/telnet/TelnetStatusThread.java @@ -28,8 +28,8 @@ import java.util.Properties; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_C6_Interlude/dist/game/config/main/Server.ini b/L2J_Mobius_C6_Interlude/dist/game/config/main/Server.ini index e457d9bc95..78feb031fc 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/config/main/Server.ini +++ b/L2J_Mobius_C6_Interlude/dist/game/config/main/Server.ini @@ -118,16 +118,20 @@ ServerListClock = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # --------------------------------------------------------------------------- diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Antharas.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Antharas.java index 8d52a53a8b..5fba441949 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Antharas.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Antharas.java @@ -23,7 +23,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Baium.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Baium.java index 5d39638577..75732342e7 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Baium.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Baium.java @@ -26,7 +26,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Tyrannosaurus.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Tyrannosaurus.java index 925f4fd6aa..e8e1b5007f 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Tyrannosaurus.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Tyrannosaurus.java @@ -16,7 +16,7 @@ */ package ai.bosses; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.SpawnTable; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Valakas.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Valakas.java index 09d52c194c..47d0f4e1f1 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Valakas.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Valakas.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/VanHalter.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/VanHalter.java index a6b9d4374d..f7d6cb0bf0 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/VanHalter.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/VanHalter.java @@ -29,8 +29,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Zaken.java b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Zaken.java index 5dc6cce784..ae7f6132ee 100644 --- a/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Zaken.java +++ b/L2J_Mobius_C6_Interlude/dist/game/data/scripts/ai/bosses/Zaken.java @@ -19,7 +19,7 @@ package ai.bosses; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/Config.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/Config.java index 53c5416081..e7e120f78e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/Config.java @@ -1164,7 +1164,9 @@ public class Config public static int MIN_PROTOCOL_REVISION; public static int MAX_PROTOCOL_REVISION; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean DEADLOCK_DETECTOR; public static int DEADLOCK_CHECK_INTERVAL; @@ -1252,9 +1254,23 @@ public class Config { throw new Error("MinProtocolRevision is bigger than MaxProtocolRevision in server configuration file."); } - SCHEDULED_THREAD_POOL_COUNT = serverConfig.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverConfig.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverConfig.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverConfig.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverConfig.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverConfig.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverConfig.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverConfig.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } DEADLOCK_DETECTOR = serverConfig.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverConfig.getInt("DeadLockCheckInterval", 20); RESTART_ON_DEADLOCK = serverConfig.getBoolean("RestartOnDeadlock", false); diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/GameServer.java index 9dcc602f5c..d24cf2e1f1 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/GameServer.java @@ -27,9 +27,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/Shutdown.java index 1b53c6628c..6ef4776a18 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/Shutdown.java @@ -19,9 +19,9 @@ package org.l2jmobius.gameserver; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SchemeBufferTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.OfflineTraderTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java index 060c20ba96..39c5d2eaa3 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java index 789bfba03e..3fcbec25ae 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java @@ -26,7 +26,7 @@ import java.util.List; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.Effect; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java index 39f38fc868..60db4fc1f1 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/NpcWalkerAI.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.ai; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.WalkerRouteData; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java index 53223e367b..43eb34037f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java @@ -24,7 +24,7 @@ import java.util.Collection; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.Effect; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 2c97438dce..603ee3936d 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java index 940aaa5e4e..0389a5a16a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -30,8 +30,8 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.PetDataTable; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index f38cd0845a..99cb291f6a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -28,8 +28,8 @@ import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.FortManager; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java index 2ac02f1987..6bbeb35c8b 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/data/sql/TradeListTable.java @@ -23,8 +23,8 @@ import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.model.StoreTradeList; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java index b25fd06317..da283542ea 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/AutoChatHandler.java @@ -27,8 +27,8 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java index 6a50cda222..4bdefea5e4 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminTest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.handler.admincommandhandlers; import java.util.NoSuchElementException; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java index 5423fbb847..d9fe58912b 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ChristmasTree.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.handler.itemhandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java index bc4d412f7d..db78228991 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/MysteryPotion.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.handler.itemhandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.model.actor.Playable; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java index 5589c5d08e..4d3df7fe1d 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/Potions.java @@ -24,7 +24,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IItemHandler; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java index ee662ea553..81d6238c3a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/ScrollOfEscape.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.itemhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java index 927e6699d7..6ce4c11042 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SoulCrystals.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.handler.itemhandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java index 02d726bfb3..2654cba726 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/itemhandlers/SummonItems.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.itemhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.data.xml.SummonItemData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java index ab61da5954..540868ce4a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/ClanGate.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.handler.skillhandlers; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ISkillHandler; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java index 1f7eef2911..f0f3f04ae9 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Disablers.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java index d674bb0dd8..6ae8789803 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/usercommandhandlers/Escape.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.usercommandhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.handler.IUserCommandHandler; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java index 3a2b10a188..f65fb8df31 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/FarmPvpCmd.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.handler.voicedcommandhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.olympiad.Olympiad; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java index 4455d5ec9f..9202862006 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/voicedcommandhandlers/Wedding.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.handler.voicedcommandhandlers; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 1845fd8a55..a0ec72f4db 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ManorSeedData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java index 27525fa456..ddd1617d08 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ChristmasManager.java @@ -22,7 +22,7 @@ import java.util.Random; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index 13557aa5d4..4be2d32bb5 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java index 09de9da445..5a411547ed 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java index d2e2ca557e..c38e026bdd 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java @@ -29,8 +29,8 @@ import java.util.Set; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.data.sql.SpawnTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 1182e8a819..2b5b3c70ac 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -27,8 +27,8 @@ import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index f64d1a80fa..ffb5458a5c 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java index e3ca6246e8..e21ff44b20 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/MercTicketManager.java @@ -23,8 +23,8 @@ import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.handler.AutoChatHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index ce1beb4a05..809421a002 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java index ebaff1dd67..d0ace3268f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 17b8e6a69d..1eb0d5e026 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -24,7 +24,7 @@ import java.util.WeakHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java index e18f541ff1..b158d0b211 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/CTF.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/DM.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/DM.java index e9f9d1c456..3b5952e933 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/DM.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/DM.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java index e4ffbef920..933879cd42 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/EventsGlobalTask.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; /** diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java index 02b8708b57..e09c975194 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/TvT.java @@ -24,8 +24,8 @@ import java.util.List; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java index 0f38f23764..c4560704ed 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/events/VIP.java @@ -24,8 +24,8 @@ import java.util.ArrayList; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java index 2e020462c9..675656ecc4 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java @@ -24,8 +24,8 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 63a2386445..70c6d703ce 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -31,8 +31,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 761db9a5a2..4ecf8dd76f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -23,8 +23,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java index 41a00ed362..c985a296b8 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Duel.java index 70cd4434b6..b4b5ac904d 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.Map; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.DuelManager; import org.l2jmobius.gameserver.instancemanager.OlympiadStadiaManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Effect.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Effect.java index 69a466ea46..6200faf24e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Effect.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Effect.java @@ -23,7 +23,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Skill.SkillType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Fishing.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Fishing.java index b61881b501..873c9abcb2 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Fishing.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Fishing.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.instancemanager.FishingChampionshipManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Party.java index 4fbec5a35d..9df6a3dbed 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Party.java @@ -22,7 +22,7 @@ import java.util.NoSuchElementException; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.instancemanager.DuelManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Potion.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Potion.java index f2d07650af..db162a1b77 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Potion.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Potion.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; public class Potion extends WorldObject diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Radar.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Radar.java index 9f95ed3ab5..34152f520f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Radar.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Radar.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.serverpackets.RadarControl; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Request.java index 77661c0744..3823a2ed60 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java index 517c67d281..3271be9664 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -24,7 +24,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.FortSiegeGuardAI; import org.l2jmobius.gameserver.ai.SiegeGuardAI; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 230ad640a8..b35540564e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java index 144f85fad6..458487945b 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -30,7 +30,7 @@ import java.util.concurrent.Future; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java index 391759a6e0..589058f2a0 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java index 337fe51475..153619469a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/BoatInstance.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.knownlist.BoatKnownList; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java index 75dbd86ada..0bb3282df1 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CabaleBufferInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java index 7c7c2746dc..7759492d44 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CastleTeleporterInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.StringTokenizer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java index 72b4af5629..0b269a2d18 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index 306b28b02c..7da6741911 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java index 5b2ad745ed..6c285c8e4f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GrandBossInstance.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.instancemanager.GrandBossManager; import org.l2jmobius.gameserver.instancemanager.RaidBossPointsManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java index 1d19937b92..14b8e7c9fb 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java index aa0f0ca486..5dac4f1292 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/GuardNoHTMLInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java index 92fa328062..5d25a19265 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ManorManagerInstance.java @@ -23,8 +23,8 @@ import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.CastleManorManager; -import org.l2jmobius.gameserver.instancemanager.TradeManager; import org.l2jmobius.gameserver.instancemanager.CastleManorManager.SeedProduction; +import org.l2jmobius.gameserver.instancemanager.TradeManager; import org.l2jmobius.gameserver.model.StoreTradeList; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java index 46810e29ce..b4f332a294 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/MonsterInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index a0c435ce7f..f79968afcf 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -23,8 +23,8 @@ import java.util.concurrent.Future; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.PetDataTable; import org.l2jmobius.gameserver.instancemanager.CursedWeaponsManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 21eae98f22..c9996d3d82 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -35,8 +35,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java index 2c63c5e727..b0cbd71e62 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ProtectorInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java index 8a2acbe331..6bf8e9bbf9 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/RaidBossInstance.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.RaidBossStatus; import org.l2jmobius.gameserver.instancemanager.RaidBossPointsManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java index ccba9aa464..40dd7c97c6 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java index 36ef83003a..0c2c79e7a4 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java index 4b304946c1..eb792f09ce 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SummonInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index a9ec04eada..361e2b12dc 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.SkillTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java index f5a1d457d8..19f8e5d068 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TownPetInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java index 5e54341a0b..81b97f0b20 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/XmassTreeInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java index 0e3b7e0295..b79a05a2be 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/PlayerKnownList.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.knownlist; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index a163b15036..ce7efe6a01 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArraySet; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.instancemanager.DuelManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index 4e448b7644..b0fdd15f6e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.network.serverpackets.CreatureSay; import org.l2jmobius.gameserver.util.Broadcast; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index bfeac896c5..a0d90a8a6b 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -40,8 +40,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.instancemanager.OlympiadStadiaManager; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java index 5f2c8f9b71..52aae79019 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestSpawn.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index b19eb67b03..e4e6f8c192 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index 60acfafa7d..e048bddf1b 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -26,8 +26,8 @@ import java.util.Map; import java.util.Map.Entry; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java index c81f136fc5..770528aa5c 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java @@ -24,8 +24,8 @@ import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.instancemanager.AuctionManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java index 8a85ac04a8..7f78b7f681 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java @@ -28,8 +28,8 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.handler.AutoChatHandler; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java index ced3e53cf1..35900321ac 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java @@ -28,8 +28,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java index 5d9bbf6dcd..5ee538f07d 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -27,8 +27,8 @@ import java.util.Map; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java index cea98acf88..4fc242c09b 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/CastleUpdater.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.siege; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.clan.Clan; import org.l2jmobius.gameserver.model.itemcontainer.ItemContainer; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java index 3868536075..abddff5ee3 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -24,8 +24,8 @@ import java.util.Calendar; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 72f7079c7f..ef02788666 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -24,8 +24,8 @@ import java.util.Calendar; import java.util.List; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java index 0ea9311e9d..57a5c51328 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -28,8 +28,8 @@ import java.util.List; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java index 8603355011..788762b89a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/BanditStrongholdSiege.java @@ -24,7 +24,7 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java index ed17a8af47..c87f8b3a04 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/DevastatedCastle.java @@ -29,8 +29,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java index a818176c97..8c4f05ea0a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/FortressOfResistance.java @@ -27,8 +27,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java index bb7e2c5246..02b8b17e9d 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/siege/clanhalls/WildBeastFarmSiege.java @@ -24,7 +24,7 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java index 56f3f76662..edb8f24604 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/spawn/AutoSpawnHandler.java @@ -33,8 +33,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; import org.l2jmobius.gameserver.data.sql.NpcTable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index e60d5190b4..b557a5f6a0 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java index f10449c125..855360e499 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DynamicZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Skill; import org.l2jmobius.gameserver.model.WorldRegion; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index fd09492532..7942e65880 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 63f8578b63..6f0d1708c6 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.MapRegionData; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java index 310c01d667..574b7ef5f5 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/zone/type/PoisonZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.Skill; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/GameClient.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/GameClient.java index 836f373baa..159c199f58 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/GameClient.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/GameClient.java @@ -31,11 +31,11 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.network.ChannelInboundHandler; import org.l2jmobius.commons.network.ICrypt; import org.l2jmobius.commons.network.IIncomingPacket; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.LoginServerThread.SessionKey; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 2deb0ba167..a4246e2bff 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.MapRegionData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java index 39f9f5ae83..eb82bbeb26 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestWearItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.instancemanager.TradeManager; import org.l2jmobius.gameserver.model.StoreTradeList; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java index 46cd344bed..ac37377aae 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/script/faenor/FaenorEventParser.java @@ -25,7 +25,7 @@ import javax.script.ScriptContext; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.script.DateRange; import org.l2jmobius.gameserver.script.IntList; import org.l2jmobius.gameserver.script.Parser; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 2c6d5dc00e..93e3b89e9e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.CubicInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index 031ae4a820..8f9e6e64ab 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index 6e35ed1a37..f08db08286 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.TradeManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index 8263c5653b..24893e3a17 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 6fe68dd94e..1c7aca973a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -22,7 +22,7 @@ import java.util.NoSuchElementException; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.RaidBossInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java index 8b003caecb..8577276892 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ExclusiveTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; /** * @author NB4L1 diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java index 62d1f34ac4..17324f4fcc 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java @@ -23,7 +23,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 8b0af7b599..32f611e44f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java index d751a89b76..81cc03de06 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/KnownListUpdateTaskManager.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.WorldRegion; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 7398341af7..faf21df771 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 98e9ce730f..5681527078 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index eb32d2a025..bb69b3ef6e 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; import org.l2jmobius.gameserver.model.spawn.Spawn; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index f54f77b176..10f6a14c08 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -38,8 +38,8 @@ import java.util.Map; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; import org.l2jmobius.gameserver.taskmanager.tasks.TaskOlympiadSave; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/util/Util.java index 56625c628e..3bb3b00ae8 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/util/Util.java @@ -24,7 +24,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.NpcInstance; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java index fa9adf348e..cd4fb8ff6a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/log/formatter/ConsoleLogFormatter.java @@ -22,8 +22,8 @@ import java.util.logging.Formatter; import java.util.logging.LogRecord; import org.l2jmobius.Config; -import org.l2jmobius.commons.util.StringUtil; import org.l2jmobius.commons.util.CommonUtil; +import org.l2jmobius.commons.util.StringUtil; public class ConsoleLogFormatter extends Formatter { diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/GameStatusThread.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/GameStatusThread.java index 3b2a3aad30..22e6a7f350 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/GameStatusThread.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/GameStatusThread.java @@ -45,8 +45,8 @@ import java.util.StringTokenizer; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.Shutdown; diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/TelnetStatusThread.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/TelnetStatusThread.java index 255c1c285f..7c21bca02a 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/TelnetStatusThread.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/telnet/TelnetStatusThread.java @@ -28,8 +28,8 @@ import java.util.Properties; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/config/Server.ini b/L2J_Mobius_CT_2.4_Epilogue/dist/game/config/Server.ini index e410898b90..ee7d13bb02 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/config/Server.ini +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index e6d7ac87f7..527bf12d22 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index b6e38cfb82..ad687b4064 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java index 3f2a20366c..366f51d29d 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java @@ -27,7 +27,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java index c51e1daf09..5bbd3ba4d7 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java @@ -24,7 +24,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java index a661bafd4b..307467b717 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java @@ -21,7 +21,7 @@ import java.util.Calendar; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java index 0cacaba412..de81a0481d 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java index 6eee1c4f98..d8d5c97baa 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java index 72eb5d7f17..6f7c9fbe40 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java index a281798535..8760785759 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java @@ -20,7 +20,7 @@ import java.util.concurrent.Future; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 3fd1c88257..56986b1bda 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package ai.areas.Gracia.vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java index 96b779e2a6..22e5e8a9b9 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java @@ -17,7 +17,7 @@ package ai.areas.Hellbound.AI; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java index b77723d98e..9e9b2b3932 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java @@ -26,7 +26,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java index f3ee6f4de8..728900246f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java @@ -26,7 +26,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java index d503c16d6c..30a924e96d 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound.Instances.UrbanArea; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index e792d52a42..c484d968ef 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java index 3098f9dc17..6ceabc5a3d 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers.impl; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/RandomSpawn.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/RandomSpawn.java index d166496581..e49a6fbbf1 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/RandomSpawn.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/RandomSpawn.java @@ -19,7 +19,7 @@ package ai.others; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java index fbd8342bb3..f161ef457f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java @@ -20,7 +20,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java index da2fb9f862..6fe8c3f3af 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java @@ -30,8 +30,8 @@ import java.util.Map.Entry; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java index c3745505f3..210d41bac2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.SpecialSiegeGuardAI; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 2f77fd49cc..fd3face730 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.EventMonsterInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Race/Race.java index 64bead1d29..1da018e1db 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/custom/events/Race/Race.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index 696db613d1..351670193f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java index 297429381b..74074bd1b2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java @@ -29,8 +29,8 @@ import java.util.StringTokenizer; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.CharNameTable; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.data.xml.TransformData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index ca4932db51..348370a3e7 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 3ed05b3505..34367d94f0 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java index 6aa7c6b379..7c0abe6fde 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java @@ -17,7 +17,7 @@ package handlers.usercommandhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 65b5b48803..877ae141ce 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java index 57c06204ca..785b9f0c25 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java @@ -23,8 +23,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java index 550ba8ae7b..cecfc1f94a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java index 818dd2f01a..b44d6c7c79 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java @@ -19,7 +19,7 @@ package quests.Q00311_ExpulsionOfEvilSpirits; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java index 300b4fb403..8dfe3cf530 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java @@ -19,7 +19,7 @@ package quests.Q00511_AwlUnderFoot; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java index ff2e330543..3a462d8bc2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java @@ -19,7 +19,7 @@ package quests.Q00726_LightWithinTheDarkness; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java index 125cf8c9aa..a1815f1ff5 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java @@ -20,7 +20,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGiranTalking.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGiranTalking.java index fc5dbeb111..c707f37668 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGiranTalking.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGiranTalking.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGludinRune.java index eb4320b4f1..da5b7a19b9 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index dcc88b24c6..5771d9dcb2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index 98bf374403..93f49e3752 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatTalkingGludin.java b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatTalkingGludin.java index b9f6af8722..67d776cf2f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatTalkingGludin.java +++ b/L2J_Mobius_CT_2.4_Epilogue/dist/game/data/scripts/vehicles/BoatTalkingGludin.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/Config.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/Config.java index 1a2bd05f0c..11ea15c683 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/Config.java @@ -504,7 +504,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1482,9 +1484,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/GameServer.java index e9547bbfda..6c7fa6fe28 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/Shutdown.java index 18944389c0..fb5f3d070a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/AttackableAI.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/AttackableAI.java index be76e39cad..84186951bc 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/AttackableAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/AttackableAI.java @@ -25,7 +25,7 @@ import java.util.Set; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.AISkillScope; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 6ea4f1ee66..22b94067d0 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -30,7 +30,7 @@ import java.util.ArrayList; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/DoorAI.java index 0483bd56e9..d7daea6b22 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java index 06123018d9..e81c290e0f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java @@ -23,7 +23,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.Collection; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java index f10b1f1ae6..b47590df89 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java @@ -23,7 +23,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.Collection; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SummonAI.java index a6d566eccc..912dbf37da 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -23,7 +23,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/BotReportTable.java index 2d89ca2a35..0504f4ae73 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/ItemTable.java index b4ebcb6afe..9ef2825847 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 14db544c1d..0cd6d67766 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.instancemanager.CHSiegeManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/xml/SkillData.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/xml/SkillData.java index f39c00478c..98e953568e 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/xml/SkillData.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/data/xml/SkillData.java @@ -27,7 +27,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.skills.Skill; import org.l2jmobius.gameserver.util.DocumentSkill; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index fad5772efb..1377134ebd 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index ac09e3bbb2..6509257836 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -38,8 +38,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index ca8036505f..566bdf45b2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java index f68bad96aa..01b69fbe20 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java index 90d89117ef..a20561aef6 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index d417dba7a5..70fc6507a7 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -31,8 +31,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 2182790420..cdd4f70205 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 743a801ecc..8fd8374d96 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index 9f3d182f41..b64c3f0eb9 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 095f632ac2..469f47e26a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java index 6557b8e50d..03b26acdd3 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.enums.RaidBossStatus; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 29f0294f4e..288e176f18 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java index 31a7b8f3e7..0533d2fbcb 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java index 73d7bfc64e..ccc08b4034 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.instancemanager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java index 53cd6a2a2b..069e941f74 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.PropertiesParser; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java index bfed89d1c6..66c8683529 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.instancemanager.events; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.model.Duel; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java index 9831cae8cc..56ab43c0e8 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.Broadcast; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index 04955e0ffb..4606127090 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java index ca9eaa9444..5662782d81 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java index 8024cb7225..b581a0c15f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java index ee2b208f4e..66262ae461 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.instancemanager.tasks; import java.util.Calendar; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java index 808c769bd4..27c9c6b0a0 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java index 1fd7266372..ba8b6ede0b 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java index c96334cb19..31202b8166 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.instancemanager.tasks; import java.util.Calendar; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java index 1f18e8820b..217572e3ac 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java @@ -33,8 +33,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/CursedWeapon.java index bc038917d2..ab8af6a43d 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DimensionalRift.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DimensionalRift.java index aac13fbfa8..6ed9438579 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DimensionalRift.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DimensionalRift.java @@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.instancemanager.DimensionalRiftManager; import org.l2jmobius.gameserver.instancemanager.QuestManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DropProtection.java index 3638b3da29..32028c24a1 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Duel.java index e7f6800db4..de2f1397aa 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Duel.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/EffectList.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/EffectList.java index e0b3ec7057..497f151116 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/EffectList.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/EffectList.java @@ -32,7 +32,7 @@ import java.util.function.Function; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Message.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Message.java index 22d35f9440..5ea38fc927 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Message.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Message.java @@ -22,7 +22,7 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Party.java index 968a4edb47..47c6bd871c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Party.java @@ -26,7 +26,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 663bfce032..f8cb3256a7 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -28,7 +28,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CreatureAI; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java index 42e2c1a09e..6a78a2e711 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -36,7 +36,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.EmptyQueue; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Npc.java index b901abccde..9e37ec9fe8 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -26,7 +26,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index 52cfb5c5f4..f3e7a5e296 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java index b618cea4ef..953f584d2f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.PetDataTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 961f31dc9b..d4adff2666 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java index 5f71d6c636..78d0b63525 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java @@ -23,7 +23,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 20be43e0fb..8315844325 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index eae302b5e0..773be8e393 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index d7a8f9f737..3c4e490d37 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index f988a9acd5..1d4175971a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 5d102d3015..00bdc3d24c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -44,8 +44,8 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java index aae6a970db..36702dd45b 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java index 86426fff21..5e726852ee 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index 490f6755f4..1a40480e16 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 7417c8b362..add06d4677 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CHSiegeManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 234822689d..0fe84e4668 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index b082a37a3f..355a14c90e 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index fdcf1213cc..15df535a64 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index d974d74d06..f4834c0569 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index 18bf029f5d..901d15a8b3 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index cea76ac059..445c24000a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.fishing; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingMonstersData; import org.l2jmobius.gameserver.instancemanager.FishingChampionshipManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 770acefdf4..b0f5be3c56 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -35,7 +35,7 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a579526f0e..03f5e620bc 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index da170c168d..75d0ef025f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 1eb24ee2c8..d7f8e2082f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -37,8 +37,8 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index af6e33463e..93136cc9e2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 216a2a5cd7..3b10989a17 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -34,8 +34,8 @@ import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java index 0c84a05b11..19c5981d73 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java @@ -21,8 +21,8 @@ import java.sql.PreparedStatement; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.instancemanager.ClanHallAuctionManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index e39c0942e3..79a535a229 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -26,8 +26,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java index c74748aab9..31435e53ae 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java @@ -28,8 +28,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.AuctionItemType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java index cf2f72f379..047ac2ac90 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java index 9ebfffbfc2..dd3703159e 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Castle.java index 7298944f68..0c51d94e67 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Fort.java index 9a72cee7ff..bf81410fc6 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 6cbf344e2f..6e5301feea 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Siege.java index 058742adac..39b2464318 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.SiegeScheduleData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java index 3794df998d..9eec0154fb 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java @@ -31,8 +31,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 45dfa7205c..092e6684e6 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index c31261b9ab..097c6c3b61 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 438158b9ea..78767914b7 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 50bc7aa4e0..e7cbc55ae1 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index cbba1f84ed..effa908afb 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index 59d964d897..a17af96726 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 0d847b8296..c2a226df96 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CHSiegeManager; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index ed3dd20b6d..6ee53654f5 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index c13b2e8e78..49d483957c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.CubicInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index 8263c5653b..24893e3a17 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java index fd853f9c99..000776b4aa 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 9c24a256ab..d7d41a53d0 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index 268abe62c2..a5d33d8798 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskClanLeaderApply; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Evolve.java index 3a559bfa23..cd5fa731ad 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/MinionList.java index c15f4af7ad..996fda8387 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Util.java index d0b4c3d186..536e013daa 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/util/Util.java @@ -33,7 +33,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.ExtFilter; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Server.ini b/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Server.ini index 7647279cc4..91a2f3eb53 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Server.ini +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index e6d7ac87f7..527bf12d22 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java index b6e38cfb82..ad687b4064 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/FantasyIsle/Parade.java @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java index 3f2a20366c..366f51d29d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/ForgeOfTheGods/TarBeetleSpawn.java @@ -27,7 +27,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java index c51e1daf09..5bbd3ba4d7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/AI/EnergySeeds.java @@ -24,7 +24,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java index a661bafd4b..307467b717 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionAttack/HallOfErosionAttack.java @@ -21,7 +21,7 @@ import java.util.Calendar; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java index 0cacaba412..de81a0481d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HallOfErosionDefence/HallOfErosionDefence.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java index 6eee1c4f98..d8d5c97baa 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityAttack/HeartInfinityAttack.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java index 72eb5d7f17..6f7c9fbe40 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/instances/HeartInfinityDefence/HeartInfinityDefence.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java index a281798535..8760785759 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipController.java @@ -20,7 +20,7 @@ import java.util.concurrent.Future; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.Movie; import org.l2jmobius.gameserver.instancemanager.AirShipManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java index 3fd1c88257..56986b1bda 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Gracia/vehicles/AirShipGludioGracia/AirShipGludioGracia.java @@ -16,7 +16,7 @@ */ package ai.areas.Gracia.vehicles.AirShipGludioGracia; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.AirShipManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java index 96b779e2a6..22e5e8a9b9 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Chimeras.java @@ -17,7 +17,7 @@ package ai.areas.Hellbound.AI; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java index b77723d98e..9e9b2b3932 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TowerOfNaia/TowerOfNaia.java @@ -26,7 +26,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java index f3ee6f4de8..728900246f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/AI/Zones/TullyWorkshop/TullyWorkshop.java @@ -26,7 +26,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java index d503c16d6c..30a924e96d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/areas/Hellbound/Instances/UrbanArea/UrbanArea.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound.Instances.UrbanArea; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/bosses/SeerUgoros/SeerUgoros.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/bosses/SeerUgoros/SeerUgoros.java index 451f52a2c4..bbbcccbec7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/bosses/SeerUgoros/SeerUgoros.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/bosses/SeerUgoros/SeerUgoros.java @@ -18,7 +18,7 @@ package ai.bosses.SeerUgoros; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java index e792d52a42..c484d968ef 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBufferAI.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java index 3637068d45..ba87906987 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/NpcBuffers.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java index 3098f9dc17..6ceabc5a3d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/NpcBuffers/impl/CabaleBuffer.java @@ -16,7 +16,7 @@ */ package ai.others.NpcBuffers.impl; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/RandomSpawn.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/RandomSpawn.java index d166496581..e49a6fbbf1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/RandomSpawn.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/RandomSpawn.java @@ -19,7 +19,7 @@ package ai.others; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/SiegeGuards.java index 15730da96c..d7011e2740 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.instancemanager.FortManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java index fbd8342bb3..f161ef457f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/FortressOfTheDead/FortressOfTheDead.java @@ -20,7 +20,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java index da2fb9f862..6fe8c3f3af 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/RainbowSpringsChateau/RainbowSpringsChateau.java @@ -30,8 +30,8 @@ import java.util.Map.Entry; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java index c3745505f3..210d41bac2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/conquerablehalls/flagwar/FlagWar.java @@ -25,8 +25,8 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.SpecialSiegeGuardAI; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 2f77fd49cc..fd3face730 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.EventMonsterInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Race/Race.java index 64bead1d29..1da018e1db 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Race/Race.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/SavingSanta/SavingSanta.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/SavingSanta/SavingSanta.java index bd770ab63e..15b5750972 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/SavingSanta/SavingSanta.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/events/SavingSanta/SavingSanta.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java index 6978f3d9f9..7dfb979e22 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminEditChar.java @@ -29,8 +29,8 @@ import java.util.StringTokenizer; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.CharNameTable; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.data.xml.TransformData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 63c4372f28..47cd371a08 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7b119d5596..7631881908 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java index 6aa7c6b379..7c0abe6fde 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Unstuck.java @@ -17,7 +17,7 @@ package handlers.usercommandhandlers; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 65b5b48803..877ae141ce 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java index 57c06204ca..785b9f0c25 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Wedding.java @@ -23,8 +23,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java index 550ba8ae7b..cecfc1f94a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/ChambersOfDelusion/Chamber.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/FinalEmperialTomb/FinalEmperialTomb.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/FinalEmperialTomb/FinalEmperialTomb.java index c1c97b69cc..7539c9c18b 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/FinalEmperialTomb/FinalEmperialTomb.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/instances/FinalEmperialTomb/FinalEmperialTomb.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.IXmlReader; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java index 818dd2f01a..b44d6c7c79 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00311_ExpulsionOfEvilSpirits/Q00311_ExpulsionOfEvilSpirits.java @@ -19,7 +19,7 @@ package quests.Q00311_ExpulsionOfEvilSpirits; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java index 300b4fb403..8dfe3cf530 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00511_AwlUnderFoot/Q00511_AwlUnderFoot.java @@ -19,7 +19,7 @@ package quests.Q00511_AwlUnderFoot; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.enums.QuestSound; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java index ff2e330543..3a462d8bc2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00726_LightWithinTheDarkness/Q00726_LightWithinTheDarkness.java @@ -19,7 +19,7 @@ package quests.Q00726_LightWithinTheDarkness; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java index 125cf8c9aa..a1815f1ff5 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/quests/Q00727_HopeWithinTheDarkness/Q00727_HopeWithinTheDarkness.java @@ -20,7 +20,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGiranTalking.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGiranTalking.java index fc5dbeb111..c707f37668 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGiranTalking.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGiranTalking.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGludinRune.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGludinRune.java index eb4320b4f1..da5b7a19b9 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGludinRune.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatGludinRune.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index dcc88b24c6..5771d9dcb2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index 98bf374403..93f49e3752 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatTalkingGludin.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatTalkingGludin.java index b9f6af8722..67d776cf2f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatTalkingGludin.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/vehicles/BoatTalkingGludin.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/Config.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/Config.java index 606f6f7a75..22d246c966 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/Config.java @@ -509,7 +509,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1482,9 +1484,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/GameServer.java index 1885197912..b1b394baec 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/Shutdown.java index 18944389c0..fb5f3d070a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/AttackableAI.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/AttackableAI.java index be76e39cad..84186951bc 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/AttackableAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/AttackableAI.java @@ -25,7 +25,7 @@ import java.util.Set; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.AISkillScope; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 6ea4f1ee66..22b94067d0 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -30,7 +30,7 @@ import java.util.ArrayList; import java.util.List; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/DoorAI.java index 0483bd56e9..d7daea6b22 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java index 06123018d9..e81c290e0f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/FortSiegeGuardAI.java @@ -23,7 +23,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.Collection; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java index f10b1f1ae6..b47590df89 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SiegeGuardAI.java @@ -23,7 +23,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.Collection; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SummonAI.java index a6d566eccc..912dbf37da 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -23,7 +23,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/BotReportTable.java index 2d89ca2a35..0504f4ae73 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/ItemTable.java index b4ebcb6afe..9ef2825847 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index 14db544c1d..0cd6d67766 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.instancemanager.CHSiegeManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/xml/SkillData.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/xml/SkillData.java index f39c00478c..98e953568e 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/xml/SkillData.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/data/xml/SkillData.java @@ -27,7 +27,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.skills.Skill; import org.l2jmobius.gameserver.util.DocumentSkill; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index fad5772efb..1377134ebd 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index ac09e3bbb2..6509257836 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -38,8 +38,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index ca8036505f..566bdf45b2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java index f68bad96aa..01b69fbe20 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FishingChampionshipManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java index 90d89117ef..a20561aef6 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/FourSepulchersManager.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index d417dba7a5..70fc6507a7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -31,8 +31,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 17de613503..1e1df5eeaf 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 7475a43cee..97bcd52939 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index 9f3d182f41..b64c3f0eb9 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 095f632ac2..469f47e26a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java index 6557b8e50d..03b26acdd3 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RaidBossSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.enums.RaidBossStatus; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 29f0294f4e..288e176f18 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java index 5ca0f8aff8..43a36892e3 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoDManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java index 73d7bfc64e..ccc08b4034 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/SoIManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.instancemanager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java index 53cd6a2a2b..069e941f74 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/TerritoryWarManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.PropertiesParser; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java index bfed89d1c6..66c8683529 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTEventTeleporter.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.instancemanager.events; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.model.Duel; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java index 9831cae8cc..56ab43c0e8 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/events/TvTManager.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.Broadcast; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index 04955e0ffb..4606127090 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java index ca9eaa9444..5662782d81 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java index 8024cb7225..b581a0c15f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeAttackTimeTask.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java index ee2b208f4e..66262ae461 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeCoolDownTimeTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.instancemanager.tasks; import java.util.Calendar; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java index 808c769bd4..27c9c6b0a0 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeEntryTimeTask.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java index 1fd7266372..ba8b6ede0b 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersChangeWarmUpTimeTask.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java index c96334cb19..31202b8166 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/instancemanager/tasks/FourSepulchersManagerSayTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.instancemanager.tasks; import java.util.Calendar; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java index 1f18e8820b..217572e3ac 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/AutoSpawnHandler.java @@ -33,8 +33,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.instancemanager.IdManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/CursedWeapon.java index bc038917d2..ab8af6a43d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DimensionalRift.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DimensionalRift.java index aac13fbfa8..6ed9438579 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DimensionalRift.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DimensionalRift.java @@ -25,7 +25,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.instancemanager.DimensionalRiftManager; import org.l2jmobius.gameserver.instancemanager.QuestManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DropProtection.java index 3638b3da29..32028c24a1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Duel.java index 01fe316afa..f059945e3e 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/EffectList.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/EffectList.java index d51cd6c9b6..a666c8e2f4 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/EffectList.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/EffectList.java @@ -32,7 +32,7 @@ import java.util.function.Function; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Message.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Message.java index 22d35f9440..5ea38fc927 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Message.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Message.java @@ -22,7 +22,7 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Nevit.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Nevit.java index 027f41e4e8..534bebfe7d 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Nevit.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Nevit.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Party.java index b7043dccd0..8ff952db55 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Party.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 663bfce032..f8cb3256a7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -28,7 +28,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.ai.CreatureAI; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java index 54d1c0ea93..793d6842d1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -36,7 +36,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.EmptyQueue; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Npc.java index b901abccde..9e37ec9fe8 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -26,7 +26,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index 52cfb5c5f4..f3e7a5e296 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java index b618cea4ef..953f584d2f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/BabyPetInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.PetDataTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 961f31dc9b..d4adff2666 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java index 5f71d6c636..78d0b63525 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/CubicInstance.java @@ -23,7 +23,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 20be43e0fb..8315844325 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index eae302b5e0..773be8e393 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index d7a8f9f737..3c4e490d37 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index f988a9acd5..1d4175971a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index a23fb05828..6aa9e623a1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -44,8 +44,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java index aae6a970db..36702dd45b 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherMonsterInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FourSepulchersManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java index 86426fff21..5e726852ee 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SepulcherNpcInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index 7b162bca00..923b707458 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index 7417c8b362..add06d4677 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CHSiegeManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 234822689d..0fe84e4668 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 2b2b83b01c..2f8b2aa2b2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index fdcf1213cc..15df535a64 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index d974d74d06..f4834c0569 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index 18bf029f5d..901d15a8b3 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index cea76ac059..445c24000a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.fishing; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingMonstersData; import org.l2jmobius.gameserver.instancemanager.FishingChampionshipManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index d8b8a6912e..2e9c6d68ae 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -35,7 +35,7 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a579526f0e..03f5e620bc 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index da170c168d..75d0ef025f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index bc035e45dc..f3eae0f9f3 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -36,8 +36,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index bdaabf8dc3..085f6466f0 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.zone.type.OlympiadStadiumZone; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadManager.java index 66f606d367..a233904649 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/olympiad/OlympiadManager.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index af6e33463e..93136cc9e2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 216a2a5cd7..3b10989a17 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -34,8 +34,8 @@ import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.sql.AnnouncementsTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java index 0c84a05b11..19c5981d73 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/AuctionableHall.java @@ -21,8 +21,8 @@ import java.sql.PreparedStatement; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.instancemanager.ClanHallAuctionManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index e39c0942e3..79a535a229 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -26,8 +26,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java index c74748aab9..31435e53ae 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/residences/ClanHallAuction.java @@ -28,8 +28,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.AuctionItemType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java index cf2f72f379..047ac2ac90 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSigns.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java index 9ebfffbfc2..dd3703159e 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/sevensigns/SevenSignsFestival.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Castle.java index 7298944f68..0c51d94e67 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Fort.java index 9a72cee7ff..bf81410fc6 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 6cbf344e2f..6e5301feea 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Siege.java index 058742adac..39b2464318 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.SiegeScheduleData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java index 3794df998d..9eec0154fb 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/siege/clanhalls/ClanHallSiegeEngine.java @@ -31,8 +31,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 45dfa7205c..092e6684e6 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index c31261b9ab..097c6c3b61 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 438158b9ea..78767914b7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 50bc7aa4e0..e7cbc55ae1 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index a203c116dc..2a8ec23ac0 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.InstanceManager; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 492085fc62..fa4e82f4f8 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index 59d964d897..a17af96726 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.model.WorldObject; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 0d847b8296..c2a226df96 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CHSiegeManager; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index ed3dd20b6d..6ee53654f5 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index c13b2e8e78..49d483957c 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.CubicInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index 8263c5653b..24893e3a17 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java index fd853f9c99..000776b4aa 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/GameTimeTaskManager.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.DayNightSpawnManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 9c24a256ab..d7d41a53d0 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index 4efb71cabc..17eaae45c7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskClanLeaderApply; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Evolve.java index 3a559bfa23..cd5fa731ad 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/MinionList.java index 1b4065d775..50dfa24436 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Util.java index d0b4c3d186..536e013daa 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/util/Util.java @@ -33,7 +33,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.ExtFilter; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/Server.ini b/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/Server.ini index 39b5db82f8..88f20a9c4a 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index a36a5c0f0d..bb90523bd3 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java index 71e7798910..6ee7d5b96a 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1395,9 +1397,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/GameServer.java index 6c737ca603..15d51f0545 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 6aec45a8a6..739f11fd6f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 047e4bbbd3..ea7d526ae0 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 4f820640f3..7ca5fa2103 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java index 72a0ce33ed..3b42741754 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Npc.java index 5ed095baa4..fb678bd2a6 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 050c253351..87f38bc9f1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -47,8 +47,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/Clan.java index 5880018718..95bdca2cde 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index f852953226..b1a88cdafa 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 12508ab9c1..bb3fa18b0d 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Siege.java index 579e7c379d..d85ad0675f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index b49a60e0be..b65afbc37b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index f54149f5f4..35e0834ec2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index cacd0f0b88..e986f124a7 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c379f83677..8296d88938 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index 0c7064aa35..06de8cefc1 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/Server.ini b/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/Server.ini index f31dd638ff..8f8c9c36d4 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index a36a5c0f0d..bb90523bd3 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java index c951df0e27..c10fc02008 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1399,9 +1401,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/GameServer.java index 6c737ca603..15d51f0545 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 047e4bbbd3..ea7d526ae0 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 4f820640f3..7ca5fa2103 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java index 72a0ce33ed..3b42741754 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Npc.java index 5ed095baa4..fb678bd2a6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 1ed5482ea7..60d17f0b9e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -47,8 +47,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/Clan.java index 5880018718..95bdca2cde 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 12508ab9c1..bb3fa18b0d 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Siege.java index 579e7c379d..d85ad0675f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index b49a60e0be..b65afbc37b 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 3c675b12fa..d3313f5858 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index c379f83677..8296d88938 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/Server.ini b/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/Server.ini index fd19902600..9808925079 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index a36a5c0f0d..bb90523bd3 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java index 029ccd49f7..3169e587d3 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java @@ -19,7 +19,7 @@ package instances.MonsterArena; import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java index c951df0e27..c10fc02008 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1399,9 +1401,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/GameServer.java index 486c60536a..a7c22d933a 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/ItemTable.java index a27b3d89a2..dc0babaa33 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index e1943209a7..53356b9a4a 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 096f7662f1..5874c9b281 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java index b2f8bec908..9f5a30e156 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java index 0ab049bfab..15775c65bc 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Npc.java index 5ed095baa4..fb678bd2a6 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 645e4e20aa..4eb2d12030 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -47,8 +47,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/Clan.java index 4d243f87b4..adfb63c81e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 12508ab9c1..bb3fa18b0d 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Siege.java index 579e7c379d..d85ad0675f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index b49a60e0be..b65afbc37b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index c98748000c..94271b4d12 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index bf2810f4d3..e6f806050d 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/Server.ini b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/Server.ini index a07c6414bb..464af809b3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index a36a5c0f0d..bb90523bd3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java index 029ccd49f7..3169e587d3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java @@ -19,7 +19,7 @@ package instances.MonsterArena; import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java index 0f668ffc37..efd1b4acd5 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1399,9 +1401,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/GameServer.java index 9e1d8d7cad..37673a98f7 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/ItemTable.java index 773e0a482d..e7ca71b25d 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index e1943209a7..53356b9a4a 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 096f7662f1..5874c9b281 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java index cc4c5d3767..818fc82b87 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java index 12f6eb96f4..fe092f9475 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Npc.java index 050f15b78d..af2ad92b7a 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 73a0b07aa3..d0587abcb3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -47,8 +47,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 87535ffd2a..56bd6d1be3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/Clan.java index 4d243f87b4..adfb63c81e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index c9047c31f1..197a15f962 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 12508ab9c1..bb3fa18b0d 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Siege.java index 579e7c379d..d85ad0675f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index b49a60e0be..b65afbc37b 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index c98748000c..94271b4d12 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index fe67b2a71b..be9fdcd576 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/Server.ini b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/Server.ini index 29958b5736..0e87b726f6 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index a36a5c0f0d..bb90523bd3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java index 029ccd49f7..3169e587d3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java @@ -19,7 +19,7 @@ package instances.MonsterArena; import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java index 9303eff0a9..6355a62ecc 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1404,9 +1406,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/GameServer.java index fa6b964eae..ee03be7554 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/ItemTable.java index 773e0a482d..e7ca71b25d 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index e1943209a7..53356b9a4a 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 096f7662f1..5874c9b281 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java index cc4c5d3767..818fc82b87 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java index 12f6eb96f4..fe092f9475 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Npc.java index 050f15b78d..af2ad92b7a 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index eb3a19e53a..23f471c2bf 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -47,8 +47,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 87535ffd2a..56bd6d1be3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/Clan.java index 4d243f87b4..adfb63c81e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index c9047c31f1..197a15f962 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 12508ab9c1..bb3fa18b0d 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Siege.java index 579e7c379d..d85ad0675f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index b49a60e0be..b65afbc37b 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index c98748000c..94271b4d12 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index fe67b2a71b..be9fdcd576 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/Server.ini b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/Server.ini index 4ce8c2859d..4eb0252473 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index 43d5926f31..5d7fd602d9 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java index 029ccd49f7..3169e587d3 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java @@ -19,7 +19,7 @@ package instances.MonsterArena; import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java index 6287252564..1c9db0eccb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1409,9 +1411,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/GameServer.java index 3188bf4265..e763e4e801 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/ItemTable.java index 773e0a482d..e7ca71b25d 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 052f8984d2..00a6087e33 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RankManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RankManager.java index ecc5817bfd..ae1cb95e4c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RankManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RankManager.java @@ -25,8 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index e1943209a7..53356b9a4a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 096f7662f1..5874c9b281 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java index cc4c5d3767..818fc82b87 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java index d79bfce28c..fae8843017 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Npc.java index 050f15b78d..af2ad92b7a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 25a718b66c..7815b4ee86 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 2b793e5f11..2234c1e5bb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -48,8 +48,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 87535ffd2a..56bd6d1be3 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/Clan.java index 4d243f87b4..adfb63c81e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index c9047c31f1..197a15f962 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index befb750e4c..89f8ec8f34 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Siege.java index 579e7c379d..d85ad0675f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index 2919f0f50f..8a2ab86d68 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5e2e57130b..83cf3844e6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index c5a04c50ad..e3dcd45bb6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; import org.l2jmobius.gameserver.model.zone.ZoneId; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 2b254879f4..423e008f23 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index fe67b2a71b..be9fdcd576 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 5f06215cfc..fc462beecb 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java index 34b66845af..844812c14f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java index d96189b956..da0bc72581 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ActionData; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.handler.IPlayerActionHandler; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/config/Server.ini b/L2J_Mobius_Classic_Interlude/dist/game/config/Server.ini index 3253273fed..c7ecb17de1 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/config/Server.ini +++ b/L2J_Mobius_Classic_Interlude/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java index 553ff1271f..50ebe6e49c 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/DenOfEvil/DenOfEvil.java @@ -16,7 +16,7 @@ */ package ai.areas.DenOfEvil; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java index 76335d113f..899bf3046f 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/areas/ImperialTomb/FourSepulchers/FourSepulchers.java @@ -28,7 +28,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 0507c51cf0..dd309e1a5b 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatGiranTalking.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatGiranTalking.java index fc5dbeb111..c707f37668 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatGiranTalking.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatGiranTalking.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatInnadrilTour.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatInnadrilTour.java index 56b586e6dc..6e74266784 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatInnadrilTour.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatInnadrilTour.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatRunePrimeval.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatRunePrimeval.java index a7e473cec2..97ef3b1c73 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatRunePrimeval.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatRunePrimeval.java @@ -18,7 +18,7 @@ package vehicles; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatTalkingGludin.java b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatTalkingGludin.java index b9f6af8722..67d776cf2f 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatTalkingGludin.java +++ b/L2J_Mobius_Classic_Interlude/dist/game/data/scripts/vehicles/BoatTalkingGludin.java @@ -19,7 +19,7 @@ package vehicles; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.BoatManager; import org.l2jmobius.gameserver.model.VehiclePathPoint; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java index 9b1a3fbe4f..8ea9f4e7f4 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1403,9 +1405,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/GameServer.java index 32b2e8f923..c750ec1eb9 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/BotReportTable.java index 4f59a1cd9b..251a9cf9e9 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java index 2550d2d17d..ddf70b4c21 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index abf7ab1714..3c3e3bd6eb 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 26b4fb1ad1..4f663f1e96 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index 4f21cae3ea..1136968690 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 047e4bbbd3..ea7d526ae0 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java index ca9eaa9444..5662782d81 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/Lottery.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index c0f60fd949..d344fc8db1 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java index cf80e1b21a..8a2659017d 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Duel.java index d16178ccf8..dd18ee18e2 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Party.java index c51a3b5c37..46f58ca6c2 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.enums.PartyDistributionType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Request.java index a2e509be58..84e7c88766 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 01858bcbd7..4e6bf68ed4 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java index 72a0ce33ed..3b42741754 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Npc.java index 044002951d..39d03bcffc 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 12209da801..42fd19e4d5 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index 7257905a94..d2d75f2c6a 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index d896b7b71e..395e02b0b4 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -45,8 +45,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.LoginServerThread; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 91897a3137..4063e5a064 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/Clan.java index 5880018718..95bdca2cde 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index ea86a0c1a7..3c2cfa13b5 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index 2958d1e856..4f9f565266 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 9a5dc4c1dd..b323a33915 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index a1b1f40b26..f06e98225d 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 12508ab9c1..bb3fa18b0d 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 403713994a..67887e72f3 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java index 9c5f459d27..3380f54049 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 4788e0f6fe..9c19394a92 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java index 78ebea6748..8662bab9fb 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index b49a60e0be..b65afbc37b 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5d9a2e3e6b..9a24195722 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index 2515504ec9..f475671321 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.CategoryType; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index eff1180d7f..20aecb2b4e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index e8acfad312..6ec63191f5 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index 8049e6865f..98f96e5643 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index ae0b30c42e..27ddd34823 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index 9f7d38490d..b668f53f5a 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index ebe9d67dcf..ffac73f2ef 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 08a8f307b5..1dfa99be25 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/config/Server.ini b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/config/Server.ini index c520efa6c4..87a0e0aafc 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/config/Server.ini +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java index e8e7134f31..6df1882b18 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java @@ -19,7 +19,7 @@ package ai.areas.OrcBarracks.Kerr; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index 43d5926f31..5d7fd602d9 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/Atingo.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/Atingo.java index 56ebc98a9d..703620a0ba 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/Atingo.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/Atingo.java @@ -19,7 +19,7 @@ package ai.others; import java.time.Duration; import java.util.function.Consumer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index ae6e95e106..04f7ab8e54 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java index 5e04f3af9e..f83bd55c22 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java @@ -29,8 +29,8 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; import org.l2jmobius.gameserver.model.effects.AbstractEffect; import org.l2jmobius.gameserver.model.effects.EffectType; -import org.l2jmobius.gameserver.model.holders.PetItemHolder; import org.l2jmobius.gameserver.model.holders.PetEvolveHolder; +import org.l2jmobius.gameserver.model.holders.PetItemHolder; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.skills.Skill; import org.l2jmobius.gameserver.network.SystemMessageId; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java index d344d18fa2..eba49f2988 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java @@ -19,7 +19,7 @@ package instances.MonsterArena; import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java index 055532afc8..7bacf45c65 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/Config.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/Config.java index dbaac2e0ef..a96571a642 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1428,9 +1430,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/GameServer.java index eadf75a38b..82f9c76267 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/BotReportTable.java index 5eeb2a1a21..104c7ec018 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/ItemTable.java index 71395876df..8cb8d8b9e8 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index df223e80fc..e411c48cdd 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index fecb438b84..770a0514c6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 372d5faf33..f55e00d36a 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index bfdd7d51c9..161e558dd1 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RankManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RankManager.java index dc69599b01..084bd49169 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RankManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RankManager.java @@ -25,8 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 02a3e7eab2..b3ca68a030 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 9dda835eb3..51512374b9 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 2e975d5f6c..60dfcbd04e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Duel.java index 9d403d9b8c..58da26ad9b 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Party.java index dfa5d9959f..3ffd953bf4 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.MagicLampData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Request.java index 17e485f0c2..3d0b417856 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java index 9e2471d550..80716b3177 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java index 85039fc1db..1a0302162f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Npc.java index 6fbde3d9db..98938aeca0 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 230cad5a4f..ba18aa95fb 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index b4d7f77abe..a3d5859f5d 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -31,8 +31,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index afdf7e84e2..5a3f8e2950 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -48,8 +48,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index 87535ffd2a..56bd6d1be3 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/Clan.java index be69469a5a..a7862e9f6c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index 66f04a9578..ceaf25ed7f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index b3be7135f8..c6c95f6a03 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 17c40bae88..29db6957ab 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index ed2fcd1825..39fbe8624b 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 60580c2f43..b587726d68 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 5556ed5c00..b1cc3f84f7 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index d81d7f08af..a4c366a933 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Castle.java index 36087b6bc4..4abd65de5d 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 7130645942..bc9c1a2966 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Siege.java index 6476cecf98..3d596fdc69 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index e8247e7a7f..6570c0d3ed 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5e2e57130b..83cf3844e6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index c5a04c50ad..e3dcd45bb6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; import org.l2jmobius.gameserver.model.zone.ZoneId; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 654e8db701..ebfd255a36 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index 396b64c34b..061521f203 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index bbab475349..4e2fce40ef 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index 8056f32e06..34eebbd85e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index 8c4bca54b7..b308ea2198 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java index f4f454da69..e5d9d28577 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java @@ -2,8 +2,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pet; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/limitshop/ExPurchaseLimitShopItemListNew.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/limitshop/ExPurchaseLimitShopItemListNew.java index 0b3a3d7f4a..7e2837e722 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/limitshop/ExPurchaseLimitShopItemListNew.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/serverpackets/limitshop/ExPurchaseLimitShopItemListNew.java @@ -21,8 +21,8 @@ import java.util.Collections; import org.l2jmobius.commons.network.PacketWriter; import org.l2jmobius.commons.util.Chronos; -import org.l2jmobius.gameserver.data.xml.LimitShopData; import org.l2jmobius.gameserver.data.xml.LimitShopCraftData; +import org.l2jmobius.gameserver.data.xml.LimitShopData; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.holders.LimitShopProductHolder; import org.l2jmobius.gameserver.model.variables.AccountVariables; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 5f06215cfc..fc462beecb 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java index 2c66a1c4c9..3e3eeb29b8 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java index d96189b956..da0bc72581 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ActionData; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.handler.IPlayerActionHandler; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 72377bcf70..ae6d0f7aad 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Server.ini b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Server.ini index e68593a6a9..b4eed99444 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Server.ini +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/config/Server.ini @@ -126,16 +126,20 @@ ServerListBrackets = False # Thread Configuration # --------------------------------------------------------------------------- -# Specifies how many threads will be in the scheduled pool. -# Default: 160 -ScheduledThreadPoolCount = 160 +# Determines the amount of scheduled thread pools. If set to -1, the server will decide the amount depending on the available processors. +ScheduledThreadPoolCount = -1 -# Specifies how many threads will be in the single instant pool. -# Default: 120 -InstantThreadPoolCount = 120 +# Specifies how many threads will be in a single scheduled pool. +ThreadsPerScheduledThreadPool = 4 -# Default: 40 -UrgentPacketThreadCoreSize = 40 +# Determines the amount of instant thread pools. If set to -1, the server will decide the amount depending on the available processors. +InstantThreadPoolCount = -1 + +# Specifies how many threads will be in a single instant pool. +ThreadsPerInstantThreadPool = 2 + +# Urgent packet thread core size. +UrgentPacketThreadCoreSize = -1 # Use threads to decrease startup time. # Default: False diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Reggiesys.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Reggiesys.java index 8b0a49ea06..3bda982e69 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Reggiesys.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Reggiesys.java @@ -16,7 +16,7 @@ */ package ai.areas.FrostCastleZone; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Slicing.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Slicing.java index 86323beb64..aafe238522 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Slicing.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Slicing.java @@ -16,7 +16,7 @@ */ package ai.areas.FrostCastleZone; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Tiron.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Tiron.java index b2124c2fe2..6c8ddb8870 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Tiron.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/FrostCastleZone/Tiron.java @@ -18,7 +18,7 @@ package ai.areas.FrostCastleZone; import java.time.Duration; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Aizen.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Aizen.java index b4036675d2..af03073d73 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Aizen.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Aizen.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound; import java.time.Duration; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Deiman.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Deiman.java index 9bf81a7b2a..2609e77f77 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Deiman.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Deiman.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound; import java.time.Duration; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/IvoryTowerTeleportZones.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/IvoryTowerTeleportZones.java index 2570c348df..fa650e77fb 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/IvoryTowerTeleportZones.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/IvoryTowerTeleportZones.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound; import java.util.Calendar; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Ryuminir.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Ryuminir.java index 3136ac174f..2803c2a273 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Ryuminir.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Ryuminir.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound; import java.time.Duration; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Satina.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Satina.java index 2fcb610a31..312c34de51 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Satina.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/Hellbound/Satina.java @@ -18,7 +18,7 @@ package ai.areas.Hellbound; import java.time.Duration; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java index e8e7134f31..6df1882b18 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/OrcBarracks/Kerr/Kerr.java @@ -19,7 +19,7 @@ package ai.areas.OrcBarracks.Kerr; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java index e676849ad1..f1bd63d20f 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/DimensionalVortex/DimensionalVortex.java @@ -17,7 +17,7 @@ package ai.areas.TowerOfInsolence.DimensionalVortex; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.instancemanager.HeavenlyRiftManager; import org.l2jmobius.gameserver.model.Party; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java index 43d5926f31..5d7fd602d9 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/areas/TowerOfInsolence/EnergyOfInsolence.java @@ -19,7 +19,7 @@ package ai.areas.TowerOfInsolence; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SpawnData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/Atingo.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/Atingo.java index 56ebc98a9d..703620a0ba 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/Atingo.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/Atingo.java @@ -19,7 +19,7 @@ package ai.others; import java.time.Duration; import java.util.function.Consumer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/SiegeGuards.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/SiegeGuards.java index 2920c5b918..a83aed5911 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/SiegeGuards.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/SiegeGuards.java @@ -19,7 +19,7 @@ package ai.others; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Elpies/Elpies.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Elpies/Elpies.java index 77ade03059..e48ae1fb56 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Elpies/Elpies.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Elpies/Elpies.java @@ -19,7 +19,7 @@ package custom.events.Elpies; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Race/Race.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Race/Race.java index 84aa0427ce..91d8b4300f 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Race/Race.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/custom/events/Race/Race.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.SkillFinishType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java index f9f88cad59..bf8871c029 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminReload.java @@ -41,8 +41,8 @@ import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.data.xml.ItemCrystallizationData; import org.l2jmobius.gameserver.data.xml.LimitShopClanData; -import org.l2jmobius.gameserver.data.xml.LimitShopData; import org.l2jmobius.gameserver.data.xml.LimitShopCraftData; +import org.l2jmobius.gameserver.data.xml.LimitShopData; import org.l2jmobius.gameserver.data.xml.MultisellData; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java index a5c898c50f..0dc0901e95 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/admincommandhandlers/AdminTest.java @@ -18,7 +18,7 @@ package handlers.admincommandhandlers; import java.util.StringTokenizer; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.IAdminCommandHandler; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index ae6e95e106..04f7ab8e54 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -29,8 +29,8 @@ import java.util.function.BiPredicate; import java.util.function.Predicate; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.cache.HtmCache; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.BuyListData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java index 3327726bca..22ab90c924 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxCp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java index a5509fd3f5..6e5efe996c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxHp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java index d15dd7433a..24643e3c72 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/MaxMp.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java index 5e04f3af9e..f83bd55c22 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/SummonPet.java @@ -29,8 +29,8 @@ import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; import org.l2jmobius.gameserver.model.effects.AbstractEffect; import org.l2jmobius.gameserver.model.effects.EffectType; -import org.l2jmobius.gameserver.model.holders.PetItemHolder; import org.l2jmobius.gameserver.model.holders.PetEvolveHolder; +import org.l2jmobius.gameserver.model.holders.PetItemHolder; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; import org.l2jmobius.gameserver.model.skills.Skill; import org.l2jmobius.gameserver.network.SystemMessageId; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java index 1fe23aaf20..9587f523a6 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkill.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.handler.TargetHandler; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java index 47d78ca00f..3bb367f892 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/effecthandlers/TriggerSkillByDualRange.java @@ -16,7 +16,7 @@ */ package handlers.effecthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/playeractions/SocialAction.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/playeractions/SocialAction.java index 7bf50f4a12..8bd7089909 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/playeractions/SocialAction.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/playeractions/SocialAction.java @@ -16,7 +16,7 @@ */ package handlers.playeractions; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.ai.NextAction; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java index 7ae17b01e3..d21787d2de 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/punishmenthandlers/JailHandler.java @@ -16,7 +16,7 @@ */ package handlers.punishmenthandlers; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java index da1be0b258..0411665c13 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Debug.java @@ -34,7 +34,7 @@ import java.util.Map.Entry; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.GameServer; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.data.xml.AdminData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java index fe4e6350ab..8c632dfa0b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Performance.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java index ef5a2646da..72aab3d598 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/telnethandlers/server/Purge.java @@ -17,7 +17,7 @@ package handlers.telnethandlers.server; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.telnet.ITelnetCommand; import io.netty.channel.ChannelHandlerContext; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 677591f9d4..d50393dab1 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -19,7 +19,7 @@ package handlers.voicedcommandhandlers; import java.util.StringTokenizer; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData; import org.l2jmobius.gameserver.handler.IVoicedCommandHandler; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java index f385968219..50e6b2bb6a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/MonsterArena/MonsterArena.java @@ -19,7 +19,7 @@ package instances.MonsterArena; import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java index 055532afc8..7bacf45c65 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/instances/TranscendentZone/TranscendentZone.java @@ -21,7 +21,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java index f7de0ede7f..35150bac9d 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/Config.java @@ -464,7 +464,9 @@ public class Config public static boolean ALT_DEV_SHOW_QUESTS_LOAD_IN_LOGS; public static boolean ALT_DEV_SHOW_SCRIPTS_LOAD_IN_LOGS; public static int SCHEDULED_THREAD_POOL_COUNT; + public static int THREADS_PER_SCHEDULED_THREAD_POOL; public static int INSTANT_THREAD_POOL_COUNT; + public static int THREADS_PER_INSTANT_THREAD_POOL; public static int IO_PACKET_THREAD_CORE_SIZE; public static boolean THREADS_FOR_LOADING; public static boolean DEADLOCK_DETECTOR; @@ -1431,9 +1433,23 @@ public class Config SERVER_LIST_TYPE = getServerTypeId(serverSettings.getString("ServerListType", "Free").split(",")); SERVER_LIST_AGE = serverSettings.getInt("ServerListAge", 0); SERVER_LIST_BRACKET = serverSettings.getBoolean("ServerListBrackets", false); - SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", 40); - INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", 20); - IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", 20); + SCHEDULED_THREAD_POOL_COUNT = serverSettings.getInt("ScheduledThreadPoolCount", -1); + if (SCHEDULED_THREAD_POOL_COUNT == -1) + { + SCHEDULED_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_SCHEDULED_THREAD_POOL = serverSettings.getInt("ThreadsPerScheduledThreadPool", 4); + INSTANT_THREAD_POOL_COUNT = serverSettings.getInt("InstantThreadPoolCount", -1); + if (INSTANT_THREAD_POOL_COUNT == -1) + { + INSTANT_THREAD_POOL_COUNT = Runtime.getRuntime().availableProcessors(); + } + THREADS_PER_INSTANT_THREAD_POOL = serverSettings.getInt("ThreadsPerInstantThreadPool", 2); + IO_PACKET_THREAD_CORE_SIZE = serverSettings.getInt("UrgentPacketThreadCoreSize", -1); + if (IO_PACKET_THREAD_CORE_SIZE == -1) + { + IO_PACKET_THREAD_CORE_SIZE = Runtime.getRuntime().availableProcessors(); + } THREADS_FOR_LOADING = serverSettings.getBoolean("ThreadsForLoading", false); DEADLOCK_DETECTOR = serverSettings.getBoolean("DeadLockDetector", true); DEADLOCK_CHECK_INTERVAL = serverSettings.getInt("DeadLockCheckInterval", 20); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java deleted file mode 100644 index 7d85dca00e..0000000000 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RejectedExecutionHandlerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.RejectedExecutionHandler; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.logging.Logger; - -/** - * @author NB4L1 - */ -public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler -{ - private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); - - @Override - public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) - { - if (executor.isShutdown()) - { - return; - } - - LOGGER.warning(r + " from " + executor + " " + new RejectedExecutionException()); - - if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) - { - new Thread(r).start(); - } - else - { - r.run(); - } - } -} diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java deleted file mode 100644 index e05addb99a..0000000000 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/RunnableWrapper.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.lang.Thread.UncaughtExceptionHandler; - -/** - * @author Mobius - */ -public class RunnableWrapper implements Runnable -{ - private final Runnable _runnable; - - public RunnableWrapper(Runnable runnable) - { - _runnable = runnable; - } - - @Override - public void run() - { - try - { - _runnable.run(); - } - catch (Throwable e) - { - final Thread t = Thread.currentThread(); - final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); - if (h != null) - { - h.uncaughtException(t, e); - } - } - } -} diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/ThreadPool.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/ThreadPool.java deleted file mode 100644 index 83e78b3805..0000000000 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/concurrent/ThreadPool.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * This file is part of the L2J Mobius project. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.l2jmobius.commons.concurrent; - -import java.util.concurrent.ArrayBlockingQueue; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; - -import org.l2jmobius.Config; - -/** - * This class handles thread pooling system.
- * It relies on two threadpool executors, which pool size is set using config.
- * Those arrays hold following pools:
- *
    - *
  • Scheduled pool keeps a track about incoming, future events.
  • - *
  • Instant pool handles short-life events.
  • - *
- */ -public class ThreadPool -{ - private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); - - private static final ScheduledThreadPoolExecutor SCHEDULED_POOL = new ScheduledThreadPoolExecutor(Config.SCHEDULED_THREAD_POOL_COUNT); - private static final ThreadPoolExecutor INSTANT_POOL = new ThreadPoolExecutor(Config.INSTANT_THREAD_POOL_COUNT, Config.INSTANT_THREAD_POOL_COUNT, 0, TimeUnit.SECONDS, new ArrayBlockingQueue(100000)); - - public static void init() - { - // Set pool options. - SCHEDULED_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - SCHEDULED_POOL.setRemoveOnCancelPolicy(true); - SCHEDULED_POOL.prestartAllCoreThreads(); - INSTANT_POOL.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); - INSTANT_POOL.prestartAllCoreThreads(); - - // Launch purge task. - scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); - - LOGGER.info("ThreadPool: Initialized"); - LOGGER.info("...scheduled pool executor with " + Config.SCHEDULED_THREAD_POOL_COUNT + " total threads."); - LOGGER.info("...instant pool executor with " + Config.INSTANT_THREAD_POOL_COUNT + " total threads."); - } - - public static void purge() - { - SCHEDULED_POOL.purge(); - INSTANT_POOL.purge(); - } - - /** - * Creates and executes a one-shot action that becomes enabled after the given delay. - * @param runnable : the task to execute. - * @param delay : the time from now to delay execution. - * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. - */ - public static ScheduledFuture schedule(Runnable runnable, long delay) - { - try - { - return SCHEDULED_POOL.schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Creates and executes a periodic action that becomes enabled first after the given initial delay. - * @param runnable : the task to execute. - * @param initialDelay : the time to delay first execution. - * @param period : the period between successive executions. - * @return a ScheduledFuture representing pending completion of the task, and whose get() method will throw an exception upon cancellation. - */ - public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) - { - try - { - return SCHEDULED_POOL.scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - return null; - } - } - - /** - * Executes the given task sometime in the future. - * @param runnable : the task to execute. - */ - public static void execute(Runnable runnable) - { - try - { - INSTANT_POOL.execute(new RunnableWrapper(runnable)); - } - catch (Exception e) - { - LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); - } - } - - public static String[] getStats() - { - final String[] stats = new String[20]; - int pos = 0; - - stats[pos++] = "Scheduled pool:"; - stats[pos++] = " |- ActiveCount: ...... " + SCHEDULED_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + SCHEDULED_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + SCHEDULED_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + SCHEDULED_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + SCHEDULED_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + SCHEDULED_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + SCHEDULED_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + SCHEDULED_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - stats[pos++] = "Instant pool:"; - stats[pos++] = " |- ActiveCount: ...... " + INSTANT_POOL.getActiveCount(); - stats[pos++] = " |- CorePoolSize: ..... " + INSTANT_POOL.getCorePoolSize(); - stats[pos++] = " |- PoolSize: ......... " + INSTANT_POOL.getPoolSize(); - stats[pos++] = " |- LargestPoolSize: .. " + INSTANT_POOL.getLargestPoolSize(); - stats[pos++] = " |- MaximumPoolSize: .. " + INSTANT_POOL.getMaximumPoolSize(); - stats[pos++] = " |- CompletedTaskCount: " + INSTANT_POOL.getCompletedTaskCount(); - stats[pos++] = " |- QueuedTaskCount: .. " + INSTANT_POOL.getQueue().size(); - stats[pos++] = " |- TaskCount: ........ " + INSTANT_POOL.getTaskCount(); - stats[pos++] = " | -------"; - - return stats; - } - - /** - * Shutdown thread pooling system correctly. Send different informations. - */ - public static void shutdown() - { - try - { - LOGGER.info("ThreadPool: Shutting down."); - SCHEDULED_POOL.shutdownNow(); - INSTANT_POOL.shutdownNow(); - } - catch (Throwable t) - { - LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); - } - } -} \ No newline at end of file diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java new file mode 100644 index 0000000000..5130f7152e --- /dev/null +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RejectedExecutionHandlerImpl.java @@ -0,0 +1,52 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.RejectedExecutionHandler; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * @author NB4L1 + */ +public class RejectedExecutionHandlerImpl implements RejectedExecutionHandler +{ + private static final Logger LOGGER = Logger.getLogger(RejectedExecutionHandlerImpl.class.getName()); + + @Override + public void rejectedExecution(Runnable runnable, ThreadPoolExecutor executor) + { + if (executor.isShutdown()) + { + return; + } + + LOGGER.warning(runnable.getClass().getSimpleName() + Config.EOL + runnable + " from " + executor + " " + new RejectedExecutionException()); + + if (Thread.currentThread().getPriority() > Thread.NORM_PRIORITY) + { + new Thread(runnable).start(); + } + else + { + runnable.run(); + } + } +} diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RunnableWrapper.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RunnableWrapper.java new file mode 100644 index 0000000000..43671b933d --- /dev/null +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/RunnableWrapper.java @@ -0,0 +1,47 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.lang.Thread.UncaughtExceptionHandler; + +public class RunnableWrapper implements Runnable +{ + private final Runnable _runnable; + + public RunnableWrapper(Runnable runnable) + { + _runnable = runnable; + } + + @Override + public void run() + { + try + { + _runnable.run(); + } + catch (Throwable e) + { + final Thread t = Thread.currentThread(); + final UncaughtExceptionHandler h = t.getUncaughtExceptionHandler(); + if (h != null) + { + h.uncaughtException(t, e); + } + } + } +} diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/ThreadPool.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/ThreadPool.java new file mode 100644 index 0000000000..3e5fb9f9d4 --- /dev/null +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/threads/ThreadPool.java @@ -0,0 +1,214 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.l2jmobius.commons.threads; + +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.logging.Logger; + +import org.l2jmobius.Config; + +/** + * This class handles thread pooling system.
+ * It relies on two ThreadPoolExecutor arrays, which pool size is set using config.
+ * Those arrays hold following pools:
+ *
    + *
  • Scheduled pool keeps a track about incoming, future events.
  • + *
  • Instant pool handles short-life events.
  • + *
+ */ +public class ThreadPool +{ + private static final Logger LOGGER = Logger.getLogger(ThreadPool.class.getName()); + + private static final ScheduledThreadPoolExecutor[] SCHEDULED_POOLS = new ScheduledThreadPoolExecutor[Config.SCHEDULED_THREAD_POOL_COUNT]; + private static final ThreadPoolExecutor[] INSTANT_POOLS = new ThreadPoolExecutor[Config.INSTANT_THREAD_POOL_COUNT]; + private static int SCHEDULED_THREAD_RANDOMIZER = 0; + private static int INSTANT_THREAD_RANDOMIZER = 0; + + public static void init() + { + LOGGER.info("ThreadPool: Initialized"); + + // Feed scheduled pool. + for (int i = 0; i < Config.SCHEDULED_THREAD_POOL_COUNT; i++) + { + SCHEDULED_POOLS[i] = new ScheduledThreadPoolExecutor(Config.THREADS_PER_SCHEDULED_THREAD_POOL); + } + + LOGGER.info("..." + Config.SCHEDULED_THREAD_POOL_COUNT + " scheduled pool executors with " + (Config.SCHEDULED_THREAD_POOL_COUNT * Config.THREADS_PER_SCHEDULED_THREAD_POOL) + " total threads."); + + // Feed instant pool. + for (int i = 0; i < Config.INSTANT_THREAD_POOL_COUNT; i++) + { + INSTANT_POOLS[i] = new ThreadPoolExecutor(Config.THREADS_PER_INSTANT_THREAD_POOL, Config.THREADS_PER_INSTANT_THREAD_POOL, 0, TimeUnit.SECONDS, new ArrayBlockingQueue<>(100000)); + } + + LOGGER.info("..." + Config.INSTANT_THREAD_POOL_COUNT + " instant pool executors with " + (Config.INSTANT_THREAD_POOL_COUNT * Config.THREADS_PER_INSTANT_THREAD_POOL) + " total threads."); + + // Prestart core threads. + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.setRemoveOnCancelPolicy(true); + threadPool.prestartAllCoreThreads(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.setRejectedExecutionHandler(new RejectedExecutionHandlerImpl()); + threadPool.prestartAllCoreThreads(); + } + + // Launch purge task. + scheduleAtFixedRate(ThreadPool::purge, 60000, 60000); + } + + public static void purge() + { + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.purge(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.purge(); + } + } + + /** + * Creates and executes a one-shot action that becomes enabled after the given delay. + * @param runnable : the task to execute. + * @param delay : the time from now to delay execution. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will return null upon completion. + */ + public static ScheduledFuture schedule(Runnable runnable, long delay) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].schedule(new RunnableWrapper(runnable), delay, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Creates and executes a periodic action that becomes enabled first after the given initial delay. + * @param runnable : the task to execute. + * @param initialDelay : the time to delay first execution. + * @param period : the period between successive executions. + * @return a ScheduledFuture representing pending completion of the task and whose get() method will throw an exception upon cancellation. + */ + public static ScheduledFuture scheduleAtFixedRate(Runnable runnable, long initialDelay, long period) + { + try + { + return SCHEDULED_POOLS[SCHEDULED_THREAD_RANDOMIZER++ % Config.SCHEDULED_THREAD_POOL_COUNT].scheduleAtFixedRate(new RunnableWrapper(runnable), initialDelay, period, TimeUnit.MILLISECONDS); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + return null; + } + } + + /** + * Executes the given task sometime in the future. + * @param runnable : the task to execute. + */ + public static void execute(Runnable runnable) + { + try + { + INSTANT_POOLS[INSTANT_THREAD_RANDOMIZER++ % Config.INSTANT_THREAD_POOL_COUNT].execute(new RunnableWrapper(runnable)); + } + catch (Exception e) + { + LOGGER.warning(e.getMessage() + Config.EOL + e.getStackTrace()); + } + } + + public static String[] getStats() + { + final String[] stats = new String[(SCHEDULED_POOLS.length + INSTANT_POOLS.length) * 10]; + int pos = 0; + + for (int i = 0; i < SCHEDULED_POOLS.length; i++) + { + final ScheduledThreadPoolExecutor threadPool = SCHEDULED_POOLS[i]; + stats[pos++] = "Scheduled pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + for (int i = 0; i < INSTANT_POOLS.length; i++) + { + final ThreadPoolExecutor threadPool = INSTANT_POOLS[i]; + stats[pos++] = "Instant pool #" + i + ":"; + stats[pos++] = " |- ActiveCount: ...... " + threadPool.getActiveCount(); + stats[pos++] = " |- CorePoolSize: ..... " + threadPool.getCorePoolSize(); + stats[pos++] = " |- PoolSize: ......... " + threadPool.getPoolSize(); + stats[pos++] = " |- LargestPoolSize: .. " + threadPool.getLargestPoolSize(); + stats[pos++] = " |- MaximumPoolSize: .. " + threadPool.getMaximumPoolSize(); + stats[pos++] = " |- CompletedTaskCount: " + threadPool.getCompletedTaskCount(); + stats[pos++] = " |- QueuedTaskCount: .. " + threadPool.getQueue().size(); + stats[pos++] = " |- TaskCount: ........ " + threadPool.getTaskCount(); + stats[pos++] = " | -------"; + } + + return stats; + } + + /** + * Shutdown thread pooling system correctly. Send different informations. + */ + public static void shutdown() + { + try + { + LOGGER.info("ThreadPool: Shutting down."); + + for (ScheduledThreadPoolExecutor threadPool : SCHEDULED_POOLS) + { + threadPool.shutdownNow(); + } + + for (ThreadPoolExecutor threadPool : INSTANT_POOLS) + { + threadPool.shutdownNow(); + } + } + catch (Throwable t) + { + LOGGER.info("ThreadPool: Problem at Shutting down. " + t.getMessage()); + } + } +} \ No newline at end of file diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/util/IXmlReader.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/util/IXmlReader.java index fc6fe56940..2ec8f05c56 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/util/IXmlReader.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/commons/util/IXmlReader.java @@ -42,7 +42,7 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.SAXParseException; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.holders.MinionHolder; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/GameServer.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/GameServer.java index d1f56319ad..6ee8405786 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/GameServer.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/GameServer.java @@ -29,9 +29,9 @@ import java.util.logging.LogManager; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; import org.l2jmobius.commons.enums.ServerMode; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.DeadLockDetector; import org.l2jmobius.commons.util.PropertiesParser; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/Shutdown.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/Shutdown.java index 5721f279f4..585b663269 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/Shutdown.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/Shutdown.java @@ -20,9 +20,9 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseBackup; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.SchemeBufferTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/CreatureAI.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/CreatureAI.java index 093f6f16ca..a1fc674148 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/CreatureAI.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/CreatureAI.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/DoorAI.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/DoorAI.java index f21c7e4d7d..54498adf50 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/DoorAI.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/DoorAI.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.ai; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/SummonAI.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/SummonAI.java index d8d31b3467..12c11d9628 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/SummonAI.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/ai/SummonAI.java @@ -22,7 +22,7 @@ import static org.l2jmobius.gameserver.ai.CtrlIntention.AI_INTENTION_IDLE; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.geoengine.GeoEngine; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java index 26734231aa..b061399e1c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/cache/WarehouseCacheManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/BotReportTable.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/BotReportTable.java index 5eeb2a1a21..104c7ec018 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/BotReportTable.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/BotReportTable.java @@ -37,8 +37,8 @@ import org.xml.sax.Attributes; import org.xml.sax.helpers.DefaultHandler; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/ItemTable.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/ItemTable.java index fab6bd64e3..3f18054f15 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/ItemTable.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/ItemTable.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.file.filter.XMLFilter; import org.l2jmobius.gameserver.data.xml.EnchantItemHPBonusData; import org.l2jmobius.gameserver.enums.ItemLocation; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/sql/ClanTable.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/sql/ClanTable.java index df223e80fc..e411c48cdd 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/sql/ClanTable.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/sql/ClanTable.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; import org.l2jmobius.gameserver.data.xml.ClanHallData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/xml/SpawnData.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/xml/SpawnData.java index 50edf6fd11..e59e289c68 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/xml/SpawnData.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/data/xml/SpawnData.java @@ -33,7 +33,7 @@ import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.model.ChanceLocation; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java index ecb5b8dc95..0e6d090040 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/handler/AdminCommandHandler.java @@ -22,7 +22,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.xml.AdminData; import org.l2jmobius.gameserver.enums.PlayerAction; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java index 28982afb57..06abda6104 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CastleManorManager.java @@ -40,8 +40,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java index 3cbca458a4..f16826f7eb 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ClanEntryManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.model.clan.entry.PledgeApplicantInfo; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java index b59d5cd3e6..8217a68c21 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CommissionManager.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import java.util.stream.Collectors; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java index dd530dd6d3..8589a1dfa2 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/CustomMailManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.MailType; import org.l2jmobius.gameserver.model.Message; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java index 6a4d356e3e..2a6fe4c09f 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/DBSpawnManager.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java index 495d1fb544..fb0eeab4cb 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/FakePlayerChatManager.java @@ -24,7 +24,7 @@ import java.util.logging.Logger; import org.w3c.dom.Document; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java index 06cce0d3a3..c2bab7af23 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GraciaSeedsManager.java @@ -20,7 +20,7 @@ import java.util.Calendar; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.tasks.UpdateSoDStateTask; import org.l2jmobius.gameserver.model.quest.Quest; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java index 0a492576c0..6b595a11f1 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/GrandBossManager.java @@ -29,8 +29,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.instancemanager.tasks.GrandBossManagerStoreTask; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java index 372d5faf33..f55e00d36a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HandysBlockCheckerManager.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.Set; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.Team; import org.l2jmobius.gameserver.instancemanager.tasks.PenaltyRemoveTask; import org.l2jmobius.gameserver.model.ArenaParticipantsHolder; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java index 3824f48477..2cb23d56e4 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/HeavenlyRiftManager.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.instancemanager; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/IdManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/IdManager.java index bfdd7d51c9..161e558dd1 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/IdManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/IdManager.java @@ -28,8 +28,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.util.PrimeFinder; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java index d8cfeac500..9117523c67 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ItemsOnGroundManager.java @@ -27,8 +27,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java index 68229872bc..45d9b8aaa2 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PrecautionaryRestartManager.java @@ -25,7 +25,7 @@ import javax.management.MBeanServer; import javax.management.ObjectName; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java index ba4e95fe3f..66bd70c9b1 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PremiumManager.java @@ -27,8 +27,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PurgeRankingManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PurgeRankingManager.java index da54d4fb7f..0d27ee70b8 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PurgeRankingManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/PurgeRankingManager.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.CharNameTable; import org.l2jmobius.gameserver.enums.MailType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RankManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RankManager.java index 65900c8f6a..a9eae654bd 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RankManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RankManager.java @@ -25,8 +25,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.PetDataTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java index 5424f6a015..e94d54853d 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/RecipeManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.RecipeData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java index e96d04ddaa..60d2efae1e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/ServerRestartManager.java @@ -22,7 +22,7 @@ import java.util.Locale; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.Shutdown; /** diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java index b15c31f6ba..8e3b7fd557 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/WalkingManager.java @@ -29,7 +29,7 @@ import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java index ab73056bb1..a71eaa8028 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/BlockChecker.java @@ -24,7 +24,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.SpawnTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java index 9dda835eb3..51512374b9 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/instancemanager/games/MonsterRace.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/CursedWeapon.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/CursedWeapon.java index 2e975d5f6c..60dfcbd04e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/CursedWeapon.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/CursedWeapon.java @@ -24,8 +24,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/DropProtection.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/DropProtection.java index 8ae9e4a6f3..2d7a782f9b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/DropProtection.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/DropProtection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PetInstance; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Duel.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Duel.java index 9d403d9b8c..58da26ad9b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Duel.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Duel.java @@ -24,7 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.DuelResult; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/MpRewardTask.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/MpRewardTask.java index c7f3c4dadd..368370201d 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/MpRewardTask.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/MpRewardTask.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.templates.NpcTemplate; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Party.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Party.java index dfa5d9959f..3ffd953bf4 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Party.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Party.java @@ -30,7 +30,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.ItemTable; import org.l2jmobius.gameserver.data.xml.MagicLampData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Request.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Request.java index 17e485f0c2..3d0b417856 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Request.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/Request.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/WorldRegion.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/WorldRegion.java index 68503b03d8..5f037f4acc 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/WorldRegion.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/WorldRegion.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java index a818c31110..314796be85 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Attackable.java @@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.AttackableAI; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java index 0f291f9fcc..bc62af494b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -40,7 +40,7 @@ import java.util.function.Predicate; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.EmptyQueue; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Npc.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Npc.java index 6fbde3d9db..98938aeca0 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Npc.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Npc.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Vehicle.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Vehicle.java index ed9210a5a7..0d8dba212e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Vehicle.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Vehicle.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TeleportWhereType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java index 230cad5a4f..ba18aa95fb 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ControllableAirShipInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.IdManager; import org.l2jmobius.gameserver.model.actor.stat.ControllableAirShipStat; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java index 7554ff0436..ac71d3c977 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DecoyInstance.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.concurrent.Future; import java.util.logging.Level; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java index d5d0a599f6..fbe1ca958e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/DoorInstance.java @@ -20,7 +20,7 @@ import java.util.Collection; import java.util.Set; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.DoorAI; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java index c68f5dc7ec..61c4acd3fe 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/FortCommanderInstance.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.instance; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java index ec25581c43..cbef3845ac 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PetInstance.java @@ -31,8 +31,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java index 9bbe472330..723e17e25b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/PlayerInstance.java @@ -48,8 +48,8 @@ import java.util.logging.Level; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.commons.util.Rnd; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java index a0629f6c89..bdb5ac65eb 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/ServitorInstance.java @@ -29,8 +29,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.sql.CharSummonTable; import org.l2jmobius.gameserver.data.sql.SummonEffectTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java index a7de6e712f..4e37c7dc9b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/SiegeFlagInstance.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.instance; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.FortSiegeManager; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java index 30bf9cfc7a..77077dc8f7 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TamedBeastInstance.java @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java index ee0fd3b2d0..b7989c7630 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/instance/TrapInstance.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.enums.TrapAction; import org.l2jmobius.gameserver.instancemanager.ZoneManager; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java index 80343145bb..067b7fece5 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/request/AbstractRequest.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.actor.request; import java.util.Objects; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; /** diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java index ecb6ca7cf2..2e6c58f2ac 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/status/CreatureStatus.java @@ -21,7 +21,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java index 18d77105c7..d734ead177 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/attackable/CommandChannelTimer.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.attackable; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java index 2c75979170..6488a21b2c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/npc/trap/TrapTriggerTask.java @@ -16,7 +16,7 @@ */ package org.l2jmobius.gameserver.model.actor.tasks.npc.trap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.TrapInstance; /** diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java index 97a5306b5b..d1d1174dbd 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/tasks/player/FlyMoveStartTask.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.actor.tasks.player; import java.util.Objects; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.actor.request.SayuneRequest; import org.l2jmobius.gameserver.model.zone.ZoneType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java index f374fea4e7..13d9e12940 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/announce/AutoAnnouncement.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.util.Broadcast; /** diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java index 7093bf240e..c3f58b75bc 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/Clan.java @@ -34,8 +34,8 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.communitybbs.BB.Forum; import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/ClanWar.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/ClanWar.java index 66f04a9578..ceaf25ed7f 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/ClanWar.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/clan/ClanWar.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanWarState; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java index d8866699a8..0b8ae7d7db 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/cubic/CubicInstance.java @@ -21,7 +21,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java index b1b3a83fd1..3769381acd 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/eventengine/EventScheduler.java @@ -26,8 +26,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.StatSet; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java index cbd3fd297e..b37497e1c7 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/EventDispatcher.java @@ -20,7 +20,7 @@ import java.util.Queue; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.events.impl.IBaseEvent; import org.l2jmobius.gameserver.model.events.listeners.AbstractEventListener; import org.l2jmobius.gameserver.model.events.returns.AbstractEventReturn; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java index b0fc6f93c0..3ced732686 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/events/timers/TimerHolder.java @@ -20,7 +20,7 @@ import java.util.Objects; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/fishing/Fishing.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/fishing/Fishing.java index b3be7135f8..c6c95f6a03 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/fishing/Fishing.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/fishing/Fishing.java @@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.FishingData; import org.l2jmobius.gameserver.enums.ShotType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/instancezone/Instance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/instancezone/Instance.java index 17c40bae88..29db6957ab 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/instancezone/Instance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/instancezone/Instance.java @@ -37,8 +37,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.CommonUtil; import org.l2jmobius.gameserver.data.xml.DoorData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java index ed2fcd1825..39fbe8624b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuction.java @@ -26,8 +26,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.ItemInfo; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java index 0161150ecb..f3f45bab5c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/itemauction/ItemAuctionInstance.java @@ -39,8 +39,8 @@ import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.sql.CharNameTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java index 60580c2f43..b587726d68 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/Olympiad.java @@ -38,8 +38,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.CategoryData; import org.l2jmobius.gameserver.data.xml.ClassListData; import org.l2jmobius.gameserver.enums.CategoryType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java index 5556ed5c00..b1cc3f84f7 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/olympiad/OlympiadGameTask.java @@ -20,7 +20,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.network.SystemMessageId; import org.l2jmobius.gameserver.network.serverpackets.SystemMessage; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java index 4bb2fc156e..aa7441dab4 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/punishment/PunishmentTask.java @@ -25,8 +25,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.handler.IPunishmentHandler; import org.l2jmobius.gameserver.handler.PunishmentHandler; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java index 1b06839f10..03661c91e8 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/LongTimeEvent.java @@ -30,8 +30,8 @@ import java.util.Locale; import org.w3c.dom.Document; import org.w3c.dom.Node; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.data.ItemTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java index 70fbfab2cf..5bc64c093c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/quest/QuestTimer.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.quest; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ClanHall.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ClanHall.java index 2565da845d..92804b7f14 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ClanHall.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ClanHall.java @@ -29,8 +29,8 @@ import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ClanHallGrade; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java index 841d3b180c..01dbec8697 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/residences/ResidenceFunction.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.residences; import java.time.Instant; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.ResidenceFunctionsData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java index 09786b266d..5327816522 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/shuttle/ShuttleEngine.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.shuttle; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DoorData; import org.l2jmobius.gameserver.model.actor.instance.DoorInstance; import org.l2jmobius.gameserver.model.actor.instance.ShuttleInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Castle.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Castle.java index 36087b6bc4..4abd65de5d 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Castle.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Castle.java @@ -28,8 +28,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.data.xml.CastleData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Fort.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Fort.java index 31b794b81f..deb2ea2723 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Fort.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Fort.java @@ -33,8 +33,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.data.SpawnTable; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/FortSiege.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/FortSiege.java index 7130645942..bc9c1a2966 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/FortSiege.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/FortSiege.java @@ -30,8 +30,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.sql.ClanTable; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.enums.FortTeleportWhoType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Siege.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Siege.java index 6476cecf98..3d596fdc69 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Siege.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/siege/Siege.java @@ -32,8 +32,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.cache.RelationCache; import org.l2jmobius.gameserver.data.sql.ClanTable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java index afdd890c1c..63b71495d6 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffFinishTask.java @@ -22,7 +22,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.atomic.AtomicInteger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; /** diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java index 5c4db5ba55..85eaf5dc70 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/BuffInfo.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.SkillFinishType; import org.l2jmobius.gameserver.model.EffectList; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java index e8247e7a7f..6570c0d3ed 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillCaster.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java index ceba35d21b..68dd05436e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/skills/SkillChannelizer.java @@ -22,7 +22,7 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.ShotType; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java index a6c61d467a..5e3e1ffcdc 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/votereward/VoteSystem.java @@ -25,7 +25,7 @@ import java.util.Map.Entry; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.ChatType; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java index 31497f0baf..502dacc6e1 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/DamageZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.InstanceType; import org.l2jmobius.gameserver.instancemanager.CastleManager; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java index 5e2e57130b..83cf3844e6 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/EffectZone.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Future; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.data.xml.SkillData; import org.l2jmobius.gameserver.enums.InstanceType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java index ffc4ce54f9..e721e3f9a3 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/FishingZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.lang.ref.WeakReference; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.PlayerCondOverride; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java index 98d28dc3da..d7e8fa41a8 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/JailZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java index 0e798b97ee..fc1c348f89 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/OlympiadStadiumZone.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.ArrayList; import java.util.List; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.ZoneManager; import org.l2jmobius.gameserver.model.Location; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java index e857ea3cc0..75d6334e67 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/ResidenceHallTeleportZone.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.model.zone.type; import java.util.concurrent.ScheduledFuture; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.Location; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java index c5a04c50ad..e3dcd45bb6 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/zone/type/SayuneZone.java @@ -17,7 +17,7 @@ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.tasks.player.FlyMoveStartTask; import org.l2jmobius.gameserver.model.zone.ZoneId; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/Disconnection.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/Disconnection.java index d5f807d493..686b8a40c2 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/Disconnection.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/Disconnection.java @@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.instancemanager.AntiFeedManager; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.events.EventDispatcher; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 97fe3d8341..3210d7446d 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -20,8 +20,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.LoginServerThread; import org.l2jmobius.gameserver.cache.HtmCache; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java index e2bc426d99..c0ed886a8e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestDuelStart.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.Party; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java index 396b64c34b..061521f203 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinParty.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PartyDistributionType; import org.l2jmobius.gameserver.model.BlockList; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java index bbab475349..4e2fce40ef 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestJoinPledge.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.World; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java index b9da9e0fe3..445365f949 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestPreviewItem.java @@ -21,8 +21,8 @@ import java.util.Map; import java.util.logging.Level; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.BuyListData; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.model.WorldObject; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java index 9c606fc9fe..7422523bd3 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/RequestRestartPoint.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ClanHallData; import org.l2jmobius.gameserver.enums.TeleportWhereType; import org.l2jmobius.gameserver.instancemanager.CastleManager; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java index 8056f32e06..34eebbd85e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/TradeRequest.java @@ -17,8 +17,8 @@ package org.l2jmobius.gameserver.network.clientpackets; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.BotReportTable; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.enums.PrivateStoreType; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java index dd6d4923b9..92c4bc16e7 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/UseItem.java @@ -20,8 +20,8 @@ import java.util.List; import java.util.concurrent.TimeUnit; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java index a1e7c6111e..fb80443656 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/dailymission/RequestOneDayRewardReceive.java @@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets.dailymission; import java.util.Collection; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.DailyMissionData; import org.l2jmobius.gameserver.model.DailyMissionDataHolder; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java index 27faef129a..22893c183a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/friend/RequestFriendInvite.java @@ -16,8 +16,8 @@ */ package org.l2jmobius.gameserver.network.clientpackets.friend; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.FakePlayerData; import org.l2jmobius.gameserver.model.BlockList; import org.l2jmobius.gameserver.model.World; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java index f4f454da69..e5d9d28577 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/network/clientpackets/pet/ExPetEquipItem.java @@ -2,8 +2,8 @@ package org.l2jmobius.gameserver.network.clientpackets.pet; import java.util.concurrent.TimeUnit; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.network.PacketReader; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.ai.CtrlEvent; import org.l2jmobius.gameserver.ai.CtrlIntention; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java index 5f06215cfc..fc462beecb 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackStanceTaskManager.java @@ -23,7 +23,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Summon; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java index 150642857e..f2588edc5f 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AttackableThinkTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.model.actor.Attackable; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java index 2c66a1c4c9..3e3eeb29b8 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPlayTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.enums.Race; import org.l2jmobius.gameserver.geoengine.GeoEngine; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java index a9fb13be00..6f4738fd02 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoPotionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.handler.ItemHandler; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java index d96189b956..da0bc72581 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/AutoUseTaskManager.java @@ -22,7 +22,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.ActionData; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.handler.IPlayerActionHandler; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java index a377467ab6..78b42ea3f2 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/BuyListTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.buylist.Product; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java index ef06c8372b..e1182ad439 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureFollowTaskManager.java @@ -22,7 +22,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CreatureAI; import org.l2jmobius.gameserver.ai.CtrlEvent; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java index 7e3af9b90b..0184995475 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/CreatureSeeTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.model.actor.Creature; /** diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java index 72377bcf70..ae6d0f7aad 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/DecayTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.Attackable; import org.l2jmobius.gameserver.model.actor.Creature; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java index 5278833783..afea3702d6 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemAppearanceTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java index 8d50581241..0c57b5d01e 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemLifeTimeTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java index 6aad864904..fafbac62e3 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemManaTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.items.instance.ItemInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java index 849835fb30..cfdc1331d6 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/ItemsAutoDestroyTaskManager.java @@ -20,7 +20,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.enums.ItemLocation; import org.l2jmobius.gameserver.instancemanager.ItemsOnGroundManager; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java index df48d2c3d9..60c7a1300c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/MessageDeletionTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.instancemanager.MailManager; import org.l2jmobius.gameserver.model.Message; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java index f182f64c8a..5fa24e682f 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PlayerAutoSaveTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java index 4398319607..ef18bf3c1a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/PvpFlagTaskManager.java @@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.taskmanager; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java index 21fd2d717e..a2d3c61b3b 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RandomAnimationTaskManager.java @@ -21,7 +21,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java index 36f6a7c8df..3d3a7c9b54 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/RespawnTaskManager.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.model.Spawn; import org.l2jmobius.gameserver.model.actor.Npc; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java index d1946b860a..805b52f362 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/taskmanager/TaskManager.java @@ -34,8 +34,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Chronos; import org.l2jmobius.gameserver.taskmanager.tasks.TaskBirthday; import org.l2jmobius.gameserver.taskmanager.tasks.TaskCleanUp; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Evolve.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Evolve.java index faff805da9..b014618b8a 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Evolve.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Evolve.java @@ -22,8 +22,8 @@ import java.util.logging.Level; import java.util.logging.Logger; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; import org.l2jmobius.commons.database.DatabaseFactory; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.gameserver.data.xml.NpcData; import org.l2jmobius.gameserver.data.xml.PetDataTable; import org.l2jmobius.gameserver.model.PetData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/MinionList.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/MinionList.java index bf5bc4fb1e..e5b348102c 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/MinionList.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/MinionList.java @@ -21,7 +21,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.ScheduledFuture; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.ai.CtrlIntention; import org.l2jmobius.gameserver.data.xml.NpcData; diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Util.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Util.java index 5e83e101aa..4bb00c1745 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Util.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/util/Util.java @@ -38,7 +38,7 @@ import java.util.logging.Logger; import java.util.stream.Collectors; import org.l2jmobius.Config; -import org.l2jmobius.commons.concurrent.ThreadPool; +import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.util.Rnd; import org.l2jmobius.gameserver.enums.HtmlActionScope; import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType;