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

📄 peerviewelement.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  messages have several causes :    <p/><ul>      <li>An <CODE>IOException</CODE> means that the messenger cannot      send the message and the messenger will accept no further messages      to be sent.</li>      <li>A <CODE>RuntimeException</CODE> mean that the message was      not sent, but retries may or may not be possible based upon the      status returned by <A HREF="../../../../../net/jxta/endpoint/Messenger.html#isClosed()"><CODE>Messenger.isClosed()</CODE></A>.</li>      <li><code>null</code> means that the message was not sent, but may      be retried. Usually the failure is due to local resource limits      being exceeded. Attempts may be made to later resend the message,      usually after waiting for congestion to clear.</li>  </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/jxta/endpoint/OutgoingMessageEventListener.html#messageSendFailed(net.jxta.endpoint.OutgoingMessageEvent)">messageSendFailed</A></CODE> in interface <CODE><A HREF="../../../../../net/jxta/endpoint/OutgoingMessageEventListener.html" title="interface in net.jxta.endpoint">OutgoingMessageEventListener</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sendMessage(net.jxta.endpoint.Message, java.lang.String, java.lang.String)"><!-- --></A><H3>sendMessage</H3><PRE>public boolean <B>sendMessage</B>(<A HREF="../../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,                           java.lang.String&nbsp;sName,                           java.lang.String&nbsp;sParam)</PRE><DL><DD>Send a message to the peer which is represented by the current PeerViewElement. A listener should be registered with the peer group's endpoint with the same service name and param on the receiving peer to receive the message, otherwise the message will be dropped.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the message to send<DT><B>Returns:</B><DD>true if the message was successfully handed off to the endpoint for delivery, false otherwise</DL></DD></DL><HR><A NAME="getRdvAdvertisement()"><!-- --></A><H3>getRdvAdvertisement</H3><PRE>public <A HREF="../../../../../net/jxta/protocol/RdvAdvertisement.html" title="class in net.jxta.protocol">RdvAdvertisement</A> <B>getRdvAdvertisement</B>()</PRE><DL><DD>Get the encapsulated Peer Advertisement.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Advertisement of the Peer represented by this object</DL></DD></DL><HR><A NAME="setRdvAdvertisement(net.jxta.protocol.RdvAdvertisement)"><!-- --></A><H3>setRdvAdvertisement</H3><PRE>public <A HREF="../../../../../net/jxta/protocol/RdvAdvertisement.html" title="class in net.jxta.protocol">RdvAdvertisement</A> <B>setRdvAdvertisement</B>(<A HREF="../../../../../net/jxta/protocol/RdvAdvertisement.html" title="class in net.jxta.protocol">RdvAdvertisement</A>&nbsp;adv)</PRE><DL><DD>Set the encapsulated Peer Advertisement.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - is the RdvAdvertisement to be set.<DT><B>Returns:</B><DD>RdvAdvertisement the old Advertisement of the Peer represented by this object</DL></DD></DL><HR><A NAME="getSrcRouteAdvertisement()"><!-- --></A><H3>getSrcRouteAdvertisement</H3><PRE>public <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A> <B>getSrcRouteAdvertisement</B>()</PRE><DL><DD>Get the encapsulated Src RouteAdv<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the Advertisement of the source Peer that sent this PVE</DL></DD></DL><HR><A NAME="setSrcRouteAdvertisement(net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>setSrcRouteAdvertisement</H3><PRE>public <A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A> <B>setSrcRouteAdvertisement</B>(<A HREF="../../../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A>&nbsp;adv)</PRE><DL><DD>Set the encapsulated source peer RouteAdvertisement.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - is the RdvAdvertisement to be set.<DT><B>Returns:</B><DD>RouteAdvertisement the old Advertisement of the Peer represented by this object</DL></DD></DL><HR><A NAME="setConnectivity(boolean)"><!-- --></A><H3>setConnectivity</H3><PRE>protected void <B>setConnectivity</B>(boolean&nbsp;live)</PRE><DL><DD>Invoked to indicate whether the last connect request succeeded. We track the current dead-alive state and notify the peerview of all the transitions from alive to dead. If we're in the view that is; otherview, we keep it silent.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="isAlive()"><!-- --></A><H3>isAlive</H3><PRE>public boolean <B>isAlive</B>()</PRE><DL><DD>Return true if the remote peer is known to be alive, false otherwise.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(java.lang.Object&nbsp;other)</PRE><DL><DD>Allows Peer Advertisements to be sorted and ordered. Currently we just use the ordering function used by the String representation of the PeerID, but we could more sophisticated if needed. This should not be relied on for a PVE initialized with an endpoint address. We make sure we never stuff such a PVE in the peerview.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></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/PeerViewElement.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/impl/rendezvous/rpv/PeerView.UpdateStatusTask.html" title="class in net.jxta.impl.rendezvous.rpv"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../net/jxta/impl/rendezvous/rpv/PeerViewElement.PendingMessage.html" title="class in net.jxta.impl.rendezvous.rpv"><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="PeerViewElement.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&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;FIELD&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></BODY></HTML>

⌨️ 快捷键说明

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