# Interface: com.pnfsoftware.jeb.util.concurrent.IMonitorInfoProvider

Thread monitoring details used by the static [monitor\(\)](ThreadUtil#monitor(Thread, IMonitorInfoProvider)) method as well as the more complex [ThreadMonitor](ThreadMonitor) objects. 

 See the adapter implementation [MonitorInfoAdapter](MonitorInfoAdapter).

## Method: getProbingPeriod
- return type: `long`

Description: Get the current probing period.
return: the period in ms

## Method: getTimeout
- return type: `long`

Description: Get the current timeout value.
return: timeout in milliseconds, or a non\-positive value for no timeout

## Method: onInterrupt

Description: If timeout has elapsed, this method is called before the monitor attempts to interrupt the monitored thread.

## Method: setProbingPeriod
- parameter: `millis`, type: `long`

Description: Set the period at which the monitored thread will be probed. That method allows the probing period to be set dynamically, even during execution of said\-thread.
parameter: millis: period in milliseconds; `<= 0` means a default value will be used

## Method: setTimeout
- parameter: `millis`, type: `long`

Description: Set the timeout value that determines the maximum thread's lifetime. That method allows the timeout to be set dynamically, even during execution of said\-thread.
parameter: millis: timeout in milliseconds; `<= 0` means no timeout

