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

📄 discoveryserviceinterface.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</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>Publish an advertisement with a default lifetime of <code>  DEFAULT_LIFETIME</code> and default expiration time for "others" of <code>DEFAULT_EXPIRATION</code>  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at a an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - publish an adverisement within this group<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement, int, long, long)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                    int&nbsp;type,                    long&nbsp;lifetime,                    long&nbsp;lifetimeForOthers)             throws java.io.IOException</PRE><DL><DD>Publish an advertisement that will expire after a certain time. A node that  finds this advertisement will hold it for about <i> lifetimeForOthers</i>  milliseconds, or <i>lifetime</i> whichever is smaller  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement, int, long, long)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>lifetime</CODE> - the amount of time this advertisement will live in      my cache in milliseconds<DD><CODE>lifetimeForOthers</CODE> - the amount of time this advertisement will live in      other people's caches in milliseconds.<DD><CODE>adv</CODE> - advertisement to publish<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="publish(net.jxta.document.Advertisement, long, long)"><!-- --></A><H3>publish</H3><PRE>public void <B>publish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                    long&nbsp;lifetime,                    long&nbsp;lifetimeForOthers)             throws java.io.IOException</PRE><DL><DD>Publish an advertisement that will expire after a certain time. A node that  finds this advertisement will hold it for about <i> lifetimeForOthers</i>  milliseconds, or <i>lifetime</i> whichever is smaller  Advertisement indexes are shared with a rendezvous peer upon connect,  and subsequent publications are shared at  an implementation specified interval<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#publish(net.jxta.document.Advertisement, long, long)">publish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>lifetime</CODE> - the amount of time this advertisement will live in      my cache in milliseconds<DD><CODE>lifetimeForOthers</CODE> - the amount of time this advertisement will live in      other people's caches in milliseconds.<DD><CODE>adv</CODE> - advertisement to publish<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - - If an I/O error occurs</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement, int)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A>&nbsp;adv,                          int&nbsp;type)</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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement, int)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - Discovery type PEER, GROUP, ADV<DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - advertisement to publish</DL></DD></DL><HR><A NAME="remotePublish(net.jxta.document.Advertisement, int, long)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<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>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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement, int, long)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><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(net.jxta.document.Advertisement, long)"><!-- --></A><H3>remotePublish</H3><PRE>public void <B>remotePublish</B>(<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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(net.jxta.document.Advertisement, long)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><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, int)"><!-- --></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)</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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(java.lang.String, net.jxta.document.Advertisement, int)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(java.lang.String, net.jxta.document.Advertisement)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></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>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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html#remotePublish(java.lang.String, net.jxta.document.Advertisement, int, long)">remotePublish</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/discovery/DiscoveryService.html" title="interface in net.jxta.discovery">DiscoveryService</A></CODE></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 

⌨️ 快捷键说明

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