public interface

IMonitorInfoProvider

com.pnfsoftware.jeb.util.concurrent.IMonitorInfoProvider
Known Indirect Subclasses

Class Overview

Thread monitoring details used by the static monitor() method as well as the more complex ThreadMonitor objects.

See the adapter implementation MonitorInfoAdapter.

Summary

Public Methods
abstract long getProbingPeriod()
Get the current probing period.
abstract long getTimeout()
Get the current timeout value.
abstract void onInterrupt()
If timeout has elapsed, this method is called before the monitor attempts to interrupt the monitored thread.
abstract void setProbingPeriod(long millis)
Set the period at which the monitored thread will be probed.
abstract void setTimeout(long millis)
Set the timeout value that determines the maximum thread's lifetime.

Public Methods

public abstract long getProbingPeriod ()

Get the current probing period.

public abstract long getTimeout ()

Get the current timeout value.

public abstract void onInterrupt ()

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

public abstract void setProbingPeriod (long millis)

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.

Parameters
millis if <=0, then will use a default sane value

public abstract void setTimeout (long millis)

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.

Parameters
millis can be <=0, means no timeout