shutdownThread()

Overview

public void function shutdownThread(
      any     thethread    
    , numeric interruptWait = 10000
    , any     logger       
)

Attempts to gracefully end the given thread, reverting to forceful shutdown if the thread does not shutdown in the given time frame

Arguments

NameTypeRequiredDescription
thethreadanyNoJava object representing the thread to shutdown
interruptWaitnumericNo (default=10000)How long, in ms, to wait for the thread to gracefully end before brutally shutting down.
loggeranyNoOptional logger. If present, will log the attempts to shutdown the thread.