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

📄 message.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 uniquely designates the listener to which the message must be delivered on arrival.</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>EndpointServiceInterface.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html#demux(net.jxta.endpoint.Message)">demux</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delivers the provided message to the correct listener as specified by  the message's destination address.</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>EndpointServiceInterface.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html#processIncomingMessage(net.jxta.endpoint.Message, net.jxta.endpoint.EndpointAddress, net.jxta.endpoint.EndpointAddress)">processIncomingMessage</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;message,                       <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;source,                       <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;destination)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is invoked by the EndpointService for each incoming message which is addressed to this listener.</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>BlockingMessenger.</B><B><A HREF="../../../../net/jxta/impl/endpoint/BlockingMessenger.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/>Implements the listener style invocation on top of the blocking send method.</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>BasicMessenger.</B><B><A HREF="../../../../net/jxta/impl/endpoint/BasicMessenger.html#sendMessage(net.jxta.endpoint.Message)">sendMessage</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a message to the destination.  <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 message 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>          <li>A return result of <code>true</code> indicates that the          message was accepted to be sent and possibly sent sucessfully.          <b>It does not generally imply that the destination will          successfully receive the message.</b></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;boolean</CODE></FONT></TD><TD><CODE><B>CrossGroupMessenger.</B><B><A HREF="../../../../net/jxta/impl/endpoint/CrossGroupMessenger.html#sendMessage(net.jxta.endpoint.Message)">sendMessage</A></B>(<A HREF="../../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a message to the destination.  <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 message 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>          <li>A return result of <code>true</code> indicates that the          message was accepted to be sent and possibly sent sucessfully.          <b>It does not generally imply that the destination will          successfully receive the message.</b></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;boolean</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)">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)</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:

⌨️ 快捷键说明

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