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

📄 message.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
      <ul>          <li>An <CODE>IOException</CODE> means that the message          was not sent and this messanger cannot be used to send          subsequent messages. Instances of          <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>A return result of <code>false</code> indicates that the          message was not accepted to be sent. Usually this is due to          local resource limits being reached. Attempts may be made to          later resend the message, usually after waiting for congestion          to clear.</li>      </ul>  </li>  <li>Synchronous Messengers:      <ul>          <li>A return result of <code>true</code> indicates that the          message was successfully sent. <b>It does not generally imply          that the destination will successfully receive the message.</b></li>      </ul>  </li>  <li>Asynchronous Messengers:      <ul>          <li>A return result of <code>true</code> indicates that the message          was accepted to be sent. <b>It does not imply that the message          will be sent or that the destination will receive the message.</b>          There will be no notification of any errors in sending the          message.</li>      </ul></li>  </ul></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>CrossGroupMessenger.</B><B><A HREF="../../../../net/jxta/impl/endpoint/CrossGroupMessenger.html#sendMessage(net.jxta.endpoint.Message, java.lang.String, java.lang.String, net.jxta.endpoint.OutgoingMessageEventListener)">sendMessage</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,            java.lang.String&nbsp;service,            java.lang.String&nbsp;serviceParam,            <A HREF="../../../../net/jxta/endpoint/OutgoingMessageEventListener.html" title="interface in net.jxta.endpoint">OutgoingMessageEventListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a message to the destination. The message will be sent to the  location specified by the destination endpoint address. The destination  address will be modified to include the provided optional service name  and service parameter.  <p/><b>WARNING:</b> The Message object should not be reused or modified  until the sendMessage has completed. Concurrent modification of messages  while a messenger is sending a message will produce incorrect and  unpredictable results. Messages should either be cloned before sending  or not modified until the sendMessage result is returned.  <p/>Error Handling:  <ul>  <li>Common Aspects:      <ul>          <li>Instances of <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>Notification of the final state of the message will be          returned via the optional          <A HREF="../../../../net/jxta/endpoint/OutgoingMessageEventListener.html" title="interface in net.jxta.endpoint"><CODE>listener</CODE></A>.</li>      </ul></li>  <li>Synchronous Messengers:      <ul>          <li>The listener will always be called before          <code>sendMessage</code> returns.</li>      </ul>  </li>  </ul></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B>AdaptorBlockingMessenger.</B><B><A HREF="../../../../net/jxta/impl/endpoint/AdaptorBlockingMessenger.html#sendMessage(net.jxta.endpoint.Message, java.lang.String, java.lang.String)">sendMessage</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,            java.lang.String&nbsp;destService,            java.lang.String&nbsp;destServiceParam)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a message to the destination. The message will be sent to the  location specified by the destination endpoint address. The destination  address will be modified to include the provided optional service name  and service parameter.  <p/><b>WARNING:</b> The Message object should not be reused or modified  until <code>sendMessage</code> has completed. Concurrent modification of  a message while a messenger is sending the message will produce  incorrect and unpredictable results. For asynchronous messengers this   method provides no notification of message send completion thus the  message should <b>never</b> be reused. It is reccommended that a clone  of the message be provided to send message:  <p/><code><pre>      messenger.sendMessage( (Message) myMessage.clone() );  </pre></code>  <p/>Error Handling:  <ul>  <li>Common Aspects:      <ul>          <li>An <CODE>IOException</CODE> means that the message          was not sent and this messanger cannot be used to send          subsequent messages. Instances of          <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>A return result of <code>false</code> indicates that the          message was not accepted to be sent. Usually this is due to          local resource limits being reached. Attempts may be made to          later resend the message, usually after waiting for congestion          to clear.</li>      </ul>  </li>  <li>Synchronous Messengers:      <ul>          <li>A return result of <code>true</code> indicates that the          message was successfully sent. <b>It does not generally imply          that the destination will successfully receive the message.</b></li>      </ul>  </li>  <li>Asynchronous Messengers:      <ul>          <li>A return result of <code>true</code> indicates that the message          was accepted to be sent. <b>It does not imply that the message          will be sent or that the destination will receive the message.</b>          There will be no notification of any errors in sending the          message.</li>      </ul></li>  </ul> <p/>Implement a blocking sendMessage on top of the wrapped messenger's listener-style call, which may or may not be synchronous; we do not care. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>AdaptorNonBlockingMessenger.</B><B><A HREF="../../../../net/jxta/impl/endpoint/AdaptorNonBlockingMessenger.html#sendMessage(net.jxta.endpoint.Message, java.lang.String, java.lang.String, net.jxta.endpoint.OutgoingMessageEventListener)">sendMessage</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,            java.lang.String&nbsp;destService,            java.lang.String&nbsp;destServiceParam,            <A HREF="../../../../net/jxta/endpoint/OutgoingMessageEventListener.html" title="interface in net.jxta.endpoint">OutgoingMessageEventListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a message to the destination. The message will be sent to the  location specified by the destination endpoint address. The destination  address will be modified to include the provided optional service name  and service parameter.  <p/><b>WARNING:</b> The Message object should not be reused or modified  until the sendMessage has completed. Concurrent modification of messages  while a messenger is sending a message will produce incorrect and  unpredictable results. Messages should either be cloned before sending  or not modified until the sendMessage result is returned.  <p/>Error Handling:  <ul>  <li>Common Aspects:      <ul>          <li>Instances of <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>Notification of the final state of the message will be          returned via the optional          <A HREF="../../../../net/jxta/endpoint/OutgoingMessageEventListener.html" title="interface in net.jxta.endpoint"><CODE>listener</CODE></A>.</li>      </ul></li>  <li>Synchronous Messengers:      <ul>          <li>The listener will always be called before          <code>sendMessage</code> returns.</li>      </ul>  </li>  </ul> <p/>We implement a local queue and thread to hide the synchronousness of the wrapped messenger. </TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../../net/jxta/impl/endpoint/package-summary.html">net.jxta.impl.endpoint</A> with parameters of type <A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/WireFormatMessageBinary.binaryMessageProxy.html#WireFormatMessageBinary.binaryMessageProxy(net.jxta.endpoint.Message, net.jxta.document.MimeMediaType)">WireFormatMessageBinary.binaryMessageProxy</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,                                           <A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;type)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/QuotaIncomingMessageListener.MessageFromSource.html#QuotaIncomingMessageListener.MessageFromSource(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress, net.jxta.impl.util.ResourceAccount, long, long)">QuotaIncomingMessageListener.MessageFromSource</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,                                               <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;srcAddress,                                               <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;destAddress,                                               <A HREF="../../../../net/jxta/impl/util/ResourceAccount.html" title="interface in net.jxta.impl.util">ResourceAccount</A>&nbsp;src,                                               long&nbsp;timeReceived,                                               long&nbsp;size)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/JxtaMessageMessageElement.html#JxtaMessageMessageElement(java.lang.String, net.jxta.document.MimeMediaType, net.jxta.endpoint.Message, net.jxta.endpoint.MessageElement)">JxtaMessageMessageElement</A></B>(java.lang.String&nbsp;name,                          <A HREF="../../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A>&nbsp;type,                          <A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,                          <A HREF="../../../../net/jxta/endpoint/MessageElement.html"

⌨️ 快捷键说明

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