Package fr.phylisiumstudio.logic
Class PhysicsThreadManager
java.lang.Object
fr.phylisiumstudio.logic.PhysicsThreadManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerWorld
(WorldPhysics worldPhysics) Submit a task to the executor servicevoid
shutdown()
ArrĂȘter le gestionnaire de threadsvoid
unregisterWorld
(UUID worldId) Cancel the task associated with the world
-
Constructor Details
-
PhysicsThreadManager
public PhysicsThreadManager(int maxThreads)
-
-
Method Details
-
registerWorld
Submit a task to the executor service- Parameters:
worldPhysics
- The world physics
-
unregisterWorld
Cancel the task associated with the world- Parameters:
worldId
- The world id
-
shutdown
public void shutdown()ArrĂȘter le gestionnaire de threads
-