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

📄 discoveryservice.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<PRE>public void <B>remotePublish</B>(java.lang.String&nbsp;peerid,                          <A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          int&nbsp;type)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Advertisement type is no longer required to remote publish an advertisement</I><P><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a lifetime of  Expiration time, or lifetime whichever is smaller<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>peerid</CODE> - id of a peer, specifying null results in a propagate      within the group<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(java.lang.String, net.jxta.document.Advertisement)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(java.lang.String&nbsp;peerid,                          <A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)</PRE><DL><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a lifetime of  Expiration time, or lifetime whichever is smaller<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>peerid</CODE> - id of a peer, specifying null results in a propagate      within the group<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(java.lang.String, net.jxta.document.Advertisement, int, long)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(java.lang.String&nbsp;peerid,                          <A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          int&nbsp;type,                          long&nbsp;lifetime)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Advertisement type is no longer required to remote publish an advertisement</I><P><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a a expiration of <i>  lifetime</i><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>peerid</CODE> - id of a peer, specifying null results in a propagate      within the group<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>lifetime</CODE> - the amount of time to advise other nodes to hold this      advertisement in their caches.<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(java.lang.String, net.jxta.document.Advertisement, long)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(java.lang.String&nbsp;peerid,                          <A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          long&nbsp;lifetime)</PRE><DL><DD>Remote Publish an advertisement will attempt to remote publish adv on all  configured transports, the Advertisement will carry a a expiration of <i>  lifetime</i><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>peerid</CODE> - id of a peer, specifying null results in a propagate      within the group<DD><CODE>lifetime</CODE> - the amount of time to advise other nodes to hold this      advertisement in their caches.<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="flushAdvertisement(net.jxta.document.Advertisement)"><!-- --></A><H3>flushAdvertisement</H3><PRE>public void <B>flushAdvertisement</B>(<A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)                        throws java.io.IOException</PRE><DL><DD>flush a stored Advertisement<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - Advertisement to remove<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="flushAdvertisements(java.lang.String, int)"><!-- --></A><H3>flushAdvertisements</H3><PRE>public void <B>flushAdvertisements</B>(java.lang.String&nbsp;id,                                int&nbsp;type)                         throws java.io.IOException</PRE><DL><DD>flushs stored Advertisement(s),<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - Document ID, Peer ID, or PeerGroup ID                         flushs all content of type "type"<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="getAdvExpirationTime(net.jxta.id.ID, int)"><!-- --></A><H3>getAdvExpirationTime</H3><PRE>public long <B>getAdvExpirationTime</B>(<A HREF="../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A>&nbsp;id,                                 int&nbsp;type)</PRE><DL><DD>Returns the maximum duration in milliseconds for which this document  should be cached by those other than the publisher. This value is either  the cache lifetime or the remaining lifetime of the document, whichever  is less.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - Document ID, Peer ID, or PeerGroup ID<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DT><B>Returns:</B><DD>the relative time in milliseconds at which remote peers should refresh this document. -1 is returned if the file is not known or  already expired</DL></DD></DL><HR><A NAME="getAdvLifeTime(net.jxta.id.ID, int)"><!-- --></A><H3>getAdvLifeTime</H3><PRE>public long <B>getAdvLifeTime</B>(<A HREF="../../../net/jxta/id/ID.html" title="class in net.jxta.id">ID</A>&nbsp;id,                           int&nbsp;type)</PRE><DL><DD>Returns the maximum duration in milliseconds for which this document  should be kept in local cache<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - Document ID, Peer ID, or PeerGroup ID<DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DT><B>Returns:</B><DD>the relative time in milliseconds at which remote peers should refresh this document. -1 is returned if the file is not known or already expired</DL></DD></DL><HR><A NAME="getAdvExpirationTime(net.jxta.document.Advertisement)"><!-- --></A><H3>getAdvExpirationTime</H3><PRE>public long <B>getAdvExpirationTime</B>(<A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)</PRE><DL><DD>Returns the maximum duration in milliseconds for which this document  should be cached by those other than the publisher. This value is either  the cache lifetime or the remaining lifetime of the document, whichever  is less.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - Advertisement<DT><B>Returns:</B><DD>the relative time in milliseconds at which remote peers should refresh this document. -1 is returned if the file is not known or  already expired</DL></DD></DL><HR><A NAME="getAdvLifeTime(net.jxta.document.Advertisement)"><!-- --></A><H3>getAdvLifeTime</H3><PRE>public long <B>getAdvLifeTime</B>(<A HREF="../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv)</PRE><DL><DD>Returns the maximum duration in milliseconds for which this document  should be kept in local cache<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - Advertisement<DT><B>Returns:</B><DD>the relative time in milliseconds at which remote peers should refresh this document. -1 is returned if the file is not known or already expired</DL></DD></DL><HR><A NAME="addDiscoveryListener(net.jxta.discovery.DiscoveryListener)"><!-- --></A><H3>addDiscoveryListener</H3><PRE>public void <B>addDiscoveryListener</B>(<A HREF="../../../net/jxta/discovery/DiscoveryListener.html" title="interface in net.jxta.discovery">DiscoveryListener</A>&nbsp;listener)</PRE><DL><DD>register a discovery listener, to notified on discovery events<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The feature to be added to the DiscoveryListener attribute</DL></DD></DL><HR><A NAME="removeDiscoveryListener(net.jxta.discovery.DiscoveryListener)"><!-- --></A><H3>removeDiscoveryListener</H3><PRE>public boolean <B>removeDiscoveryListener</B>(<A HREF="../../../net/jxta/discovery/DiscoveryListener.html" title="interface in net.jxta.discovery">DiscoveryListener</A>&nbsp;listener)</PRE><DL><DD>remove a discovery listener<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - listener to be called back for discovery events<DT><B>Returns:</B><DD>true if the argument was a component of this vector; false      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>&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="class-use/DiscoveryService.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../net/jxta/discovery/DiscoveryListener.html" title="interface in net.jxta.discovery"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DiscoveryService.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;CONSTR&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;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -