📄 timermbean.html
字号:
</DD></DL><HR><A NAME="getNotificationMessage(java.lang.Integer)"><!-- --></A><H3>getNotificationMessage</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getNotificationMessage</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> id)</PRE><DL><DD>Gets the timer notification detailed message corresponding to the specified identifier.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - The timer notification identifier.<DT><B>Returns:</B><DD>The timer notification detailed message or null if the identifier is not mapped to any timer notification registered for this timer MBean.</DL></DD></DL><HR><A NAME="getNotificationUserData(java.lang.Integer)"><!-- --></A><H3>getNotificationUserData</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getNotificationUserData</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> id)</PRE><DL><DD>Gets the timer notification user data object corresponding to the specified identifier.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - The timer notification identifier.<DT><B>Returns:</B><DD>The timer notification user data object or null if the identifier is not mapped to any timer notification registered for this timer MBean.</DL></DD></DL><HR><A NAME="getDate(java.lang.Integer)"><!-- --></A><H3>getDate</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getDate</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> id)</PRE><DL><DD>Gets a copy of the date associated to a timer notification.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - The timer notification identifier.<DT><B>Returns:</B><DD>A copy of the date or null if the identifier is not mapped to any timer notification registered for this timer MBean.</DL></DD></DL><HR><A NAME="getPeriod(java.lang.Integer)"><!-- --></A><H3>getPeriod</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Long.html" title="class or interface in java.lang">Long</A> <B>getPeriod</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> id)</PRE><DL><DD>Gets a copy of the period (in milliseconds) associated to a timer notification.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - The timer notification identifier.<DT><B>Returns:</B><DD>A copy of the period or null if the identifier is not mapped to any timer notification registered for this timer MBean.</DL></DD></DL><HR><A NAME="getNbOccurences(java.lang.Integer)"><!-- --></A><H3>getNbOccurences</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Long.html" title="class or interface in java.lang">Long</A> <B>getNbOccurences</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> id)</PRE><DL><DD>Gets a copy of the remaining number of occurences associated to a timer notification.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - The timer notification identifier.<DT><B>Returns:</B><DD>A copy of the remaining number of occurences or null if the identifier is not mapped to any timer notification registered for this timer MBean.</DL></DD></DL><HR><A NAME="getFixedRate(java.lang.Integer)"><!-- --></A><H3>getFixedRate</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A> <B>getFixedRate</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> id)</PRE><DL><DD>Gets a copy of the flag indicating whether a peridic notification is executed at <i>fixed-delay</i> or at <i>fixed-rate</i>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - The timer notification identifier.<DT><B>Returns:</B><DD>A copy of the flag indicating whether a peridic notification is executed at <i>fixed-delay</i> or at <i>fixed-rate</i>.</DL></DD></DL><HR><A NAME="getSendPastNotifications()"><!-- --></A><H3>getSendPastNotifications</H3><PRE>public boolean <B>getSendPastNotifications</B>()</PRE><DL><DD>Gets the flag indicating whether or not the timer sends past notifications.<P><DD><DL><DT><B>Returns:</B><DD>The past notifications sending on/off flag value.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/timer/TimerMBean.html#setSendPastNotifications(boolean)"><CODE>setSendPastNotifications(boolean)</CODE></A></DL></DD></DL><HR><A NAME="setSendPastNotifications(boolean)"><!-- --></A><H3>setSendPastNotifications</H3><PRE>public void <B>setSendPastNotifications</B>(boolean value)</PRE><DL><DD>Sets the flag indicating whether the timer sends past notifications or not.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The past notifications sending on/off flag value.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/timer/TimerMBean.html#getSendPastNotifications()"><CODE>getSendPastNotifications()</CODE></A></DL></DD></DL><HR><A NAME="isActive()"><!-- --></A><H3>isActive</H3><PRE>public boolean <B>isActive</B>()</PRE><DL><DD>Tests whether the timer MBean is active. A timer MBean is marked active when the <A HREF="../../../javax/management/timer/TimerMBean.html#start()"><CODE>start</CODE></A> method is called. It becomes inactive when the <A HREF="../../../javax/management/timer/TimerMBean.html#stop()"><CODE>stop</CODE></A> method is called.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the timer MBean is active, <CODE>false</CODE> otherwise.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Tests whether the list of timer notifications is empty.<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the list of timer notifications is empty, <CODE>false</CODE> otherwise.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TimerMBean.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -