⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notification.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="source"><!-- --></A><H3>source</H3><PRE>protected <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>source</B></PRE><DL><DD><p>This field hides the <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html#source" title="class or interface in java.util"><CODE>EventObject.source</CODE></A> field in the parent class to make it non-transient and therefore part of the serialized form.</p><P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Notification(java.lang.String, java.lang.Object, long)"><!-- --></A><H3>Notification</H3><PRE>public <B>Notification</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;type,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;source,                    long&nbsp;sequenceNumber)</PRE><DL><DD>Creates a Notification object. The notification timeStamp is set to the current date.<P><DT><B>Parameters:</B><DD><CODE>type</CODE> - The notification type.<DD><CODE>source</CODE> - The notification source.<DD><CODE>sequenceNumber</CODE> - The notification sequence number within the source object.</DL><HR><A NAME="Notification(java.lang.String, java.lang.Object, long, java.lang.String)"><!-- --></A><H3>Notification</H3><PRE>public <B>Notification</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;type,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;source,                    long&nbsp;sequenceNumber,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;message)</PRE><DL><DD>Creates a Notification object. The notification timeStamp is set to the current date.<P><DT><B>Parameters:</B><DD><CODE>type</CODE> - The notification type.<DD><CODE>source</CODE> - The notification source.<DD><CODE>sequenceNumber</CODE> - The notification sequence number within the source object.<DD><CODE>message</CODE> - The detailed message.</DL><HR><A NAME="Notification(java.lang.String, java.lang.Object, long, long)"><!-- --></A><H3>Notification</H3><PRE>public <B>Notification</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;type,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;source,                    long&nbsp;sequenceNumber,                    long&nbsp;timeStamp)</PRE><DL><DD>Creates a Notification object.<P><DT><B>Parameters:</B><DD><CODE>type</CODE> - The notification type.<DD><CODE>source</CODE> - The notification source.<DD><CODE>sequenceNumber</CODE> - The notification sequence number within the source object.<DD><CODE>timeStamp</CODE> - The notification emission date.</DL><HR><A NAME="Notification(java.lang.String, java.lang.Object, long, long, java.lang.String)"><!-- --></A><H3>Notification</H3><PRE>public <B>Notification</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;type,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;source,                    long&nbsp;sequenceNumber,                    long&nbsp;timeStamp,                    <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;message)</PRE><DL><DD>Creates a Notification object.<P><DT><B>Parameters:</B><DD><CODE>type</CODE> - The notification type.<DD><CODE>source</CODE> - The notification source.<DD><CODE>sequenceNumber</CODE> - The notification sequence number within the source object.<DD><CODE>timeStamp</CODE> - The notification emission date.<DD><CODE>message</CODE> - The detailed message.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setSource(java.lang.Object)"><!-- --></A><H3>setSource</H3><PRE>public void <B>setSource</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;source)</PRE><DL><DD>Sets the source.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the new source for this object.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventObject.html#getSource()" title="class or interface in java.util"><CODE>EventObject.getSource()</CODE></A></DL></DD></DL><HR><A NAME="getSequenceNumber()"><!-- --></A><H3>getSequenceNumber</H3><PRE>public long <B>getSequenceNumber</B>()</PRE><DL><DD>Get the notification sequence number.<P><DD><DL><DT><B>Returns:</B><DD>The notification sequence number within the source object. It's a serial number identifying a particular instance of notification in the context of the notification source. The notification model does not assume that notifications will be received in the same order that they are sent. The sequence number helps listeners to sort received notifications.<DT><B>See Also:</B><DD><A HREF="../../javax/management/Notification.html#setSequenceNumber(long)"><CODE>setSequenceNumber(long)</CODE></A></DL></DD></DL><HR><A NAME="setSequenceNumber(long)"><!-- --></A><H3>setSequenceNumber</H3><PRE>public void <B>setSequenceNumber</B>(long&nbsp;sequenceNumber)</PRE><DL><DD>Set the notification sequence number.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sequenceNumber</CODE> - The notification sequence number within the source object. It is a serial number identifying a particular instance of notification in the context of the notification source.<DT><B>See Also:</B><DD><A HREF="../../javax/management/Notification.html#getSequenceNumber()"><CODE>getSequenceNumber()</CODE></A></DL></DD></DL><HR><A NAME="getType()"><!-- --></A><H3>getType</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>getType</B>()</PRE><DL><DD>Get the notification type.<P><DD><DL><DT><B>Returns:</B><DD>The notification type. It's a string expressed in a dot notation similar to Java properties. An example of a notification type is network.alarm.router .</DL></DD></DL><HR><A NAME="getTimeStamp()"><!-- --></A><H3>getTimeStamp</H3><PRE>public long <B>getTimeStamp</B>()</PRE><DL><DD>Get the notification timestamp.<P><DD><DL><DT><B>Returns:</B><DD>The notification timestamp.<DT><B>See Also:</B><DD><A HREF="../../javax/management/Notification.html#setTimeStamp(long)"><CODE>setTimeStamp(long)</CODE></A></DL></DD></DL><HR><A NAME="setTimeStamp(long)"><!-- --></A><H3>setTimeStamp</H3><PRE>public void <B>setTimeStamp</B>(long&nbsp;timeStamp)</PRE><DL><DD>Set the notification timestamp.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>timeStamp</CODE> - The notification timestamp. It indicates when the notification was generated.<DT><B>See Also:</B><DD><A HREF="../../javax/management/Notification.html#getTimeStamp()"><CODE>getTimeStamp()</CODE></A></DL></DD></DL><HR><A NAME="getMessage()"><!-- --></A><H3>getMessage</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>getMessage</B>()</PRE><DL><DD>Get the notification message.<P><DD><DL><DT><B>Returns:</B><DD>The message string of this notification object. It contains in a string, which could be the explanation of the notification for displaying to a user</DL></DD></DL><HR><A NAME="getUserData()"><!-- --></A><H3>getUserData</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>getUserData</B>()</PRE><DL><DD>Get the user data.<P><DD><DL><DT><B>Returns:</B><DD>The user data object. It is used for whatever data the notification source wishes to communicate to its consumers.<DT><B>See Also:</B><DD><A HREF="../../javax/management/Notification.html#setUserData(java.lang.Object)"><CODE>setUserData(java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="setUserData(java.lang.Object)"><!-- --></A><H3>setUserData</H3><PRE>public void <B>setUserData</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;userData)</PRE><DL><DD>Set the user data.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>userData</CODE> - The user data object. It is used for whatever data the notification source wishes to communicate to its consumers.<DT><B>See Also:</B><DD><A HREF="../../javax/management/Notification.html#getUserData()"><CODE>getUserData()</CODE></A></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../javax/management/MBeanTrustPermission.html" title="class in javax.management"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/management/NotificationBroadcasterSupport.html" title="class in javax.management"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Notification.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -