Note that there are some explanatory texts on larger screens.

plurals
  1. USggarciao
    primarykey
    data
    text
    plurals
    1. COI'm sending a valid request: When I run the schema validation in the client side for the request (using SOAPUI) I got no exceptions.
      singulars
    2. COThe question is: Which jobs list I must use in my custom `shutdownNow()` method to force correctly all the jobs? If I use the `getQueue()` method I will get the scheduled and periodicals ones (and this list may be empty if `shutdown()` is called before). But what about the thread that are actually running? The `shutdownNow()` will interrupt them, but how can I force them to release theirs resources? I need a reference to them in order to call the `Future.cancel(true)` and for that I keep a list as suggested in other answer. I don't know if this is the best way to do it
      singulars
    3. COBut the `shutdownNow()` method doesn't call the `Future.cancel()` of the scheduled jobs. Actually, it uses a private `Worker` List to interrupt the threads with the `Thread.interrupt()` method. So, my decorators aren't invoked with the `shutdownNow()` method. In other hand, you're right: the `shutdown()` method will call the `Future.cancel(false)` without interrupting the thread. So what we actually do is to release the resources when the param `mayInterruptIfRunning = true` and we overwrite the `shutdownNow()` to call the `Future.cancel(true)` before calling `super.shutdownNow()`.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload