ilog.rules.monitor.model

Class IlrThread

  • java.lang.Object
    • ilog.rules.monitor.model.IlrThread


  • public final class IlrThread
    extends java.lang.Object
    Represents a java thread.
    Since:
    JRules 7.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o) 
      long getBlockedCount()
      Returns the total number of times this thread blocked to enter or reenter a monitor.
      long getBlockedTime()
      Returns the approximate accumulated elapsed time in milliseconds that this thread has blocked to enter or reenter a monitor since the thread contention monitoring is enabled.
      long getId()
      Gets the thread ID of the thread.
      java.lang.String getName()
      Gets the name of the thread, if any.
      long getWaitedCount()
      Returns the total number of times this thread has been in the WAITING or TIMED_WAITING state.
      long getWaitedTime()
      Returns the approximate accumulated time in milliseconds that the thread has waited for notification since the monitoring is enabled.
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name of the thread, if any.
        Returns:
        the name of the thread.
      • getId

        public long getId()
        Gets the thread ID of the thread. The tread ID is positive long number generated when this thread was created. The thread ID is unique and remains unchanged during its lifetime.
        Returns:
        a long that is the ID of the thread.
        See Also:
        Thread.getId()
      • getWaitedTime

        public long getWaitedTime()
        Returns the approximate accumulated time in milliseconds that the thread has waited for notification since the monitoring is enabled. Returns -1L if the thread contention monitoring is disabled or not avalaible.
        Returns:
        the approximate accumulated time in milliseconds that the thread has been in WAITING or TIMED_WAITING state.
        See Also:
        ThreadMXBean.isThreadContentionMonitoringEnabled()
      • getWaitedCount

        public long getWaitedCount()
        Returns the total number of times this thread has been in the WAITING or TIMED_WAITING state.
        Returns:
        the total number of times this thread has been in the WAITING or TIMED_WAITING state.
      • getBlockedTime

        public long getBlockedTime()
        Returns the approximate accumulated elapsed time in milliseconds that this thread has blocked to enter or reenter a monitor since the thread contention monitoring is enabled. This method returns -1L if thread contention monitoring is disabled.
        Returns:
        the approximate accumulated time in milliseconds that the thread entered the BLOCKED state.
        See Also:
        ThreadMXBean.isThreadContentionMonitoringEnabled()
      • getBlockedCount

        public long getBlockedCount()
        Returns the total number of times this thread blocked to enter or reenter a monitor.
        Returns:
        Returns the total number of times this thread entered a BLOCKED state.
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

© Copyright IBM Corp. 1987, 2017