powered by Jive Software

ThreadPool for Plugin

I need do some actions which cost much time, so should I use a thread to do to avoid block the http request?
And If the plugin is reading or writing data for User-A, User-B also ask the same plugin to write or read some data in this time, Does user-A block User-B request?

Yes, you should make long-running tasks asynchronous, otherwise Openfire would quickly run out of resources to process additional requests.

Got it, thank you~