| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
| <!-- NewPage -->
|
| <html lang="ru">
|
| <head><meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
|
| <!-- Generated by javadoc (version 1.7.0_75) on Mon Dec 21 12:25:24 MSK 2015 -->
|
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
|
| <title>MessagingListenActor (Ignite 1.5.0-final-SNAPSHOT)</title>
|
| <meta name="date" content="2015-12-21">
|
| <link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style">
|
| <link rel='shortcut icon' href='https://ignite.apache.org/favicon.ico'/> |
| <link type='text/css' rel='stylesheet' href='http://agorbatchev.typepad.com/pub/sh/3_0_83/styles/shCore.css'/> |
| <link type='text/css' rel='stylesheet' href='http://agorbatchev.typepad.com/pub/sh/3_0_83/styles/shThemeDefault.css'/> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shCore.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shLegacy.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushJava.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushPlain.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushJScript.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushBash.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushXml.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushScala.js'></script> |
| <script type='text/javascript' src='http://agorbatchev.typepad.com/pub/sh/3_0_83/scripts/shBrushGroovy.js'></script> |
| </head> |
|
|
| <body>
|
| <script type="text/javascript"><!--
|
| if (location.href.indexOf('is-external=true') == -1) {
|
| parent.document.title="MessagingListenActor (Ignite 1.5.0-final-SNAPSHOT)";
|
| }
|
| //-->
|
| </script>
|
| <noscript>
|
| <div>JavaScript is disabled on your browser.</div>
|
| </noscript>
|
| <!-- ========= START OF TOP NAVBAR ======= -->
|
| <div class="topNav"><a name="navbar_top">
|
| <!-- -->
|
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
| <!-- -->
|
| </a>
|
| <ul class="navList" title="Navigation">
|
| <li><a href="../../../../overview-summary.html">Overview</a></li>
|
| <li><a href="package-summary.html">Package</a></li>
|
| <li class="navBarCell1Rev">Class</li>
|
| <li><a href="class-use/MessagingListenActor.html">Use</a></li>
|
| <li><a href="package-tree.html">Tree</a></li>
|
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
| <li><a href="../../../../index-all.html">Index</a></li>
|
| <li><a href="../../../../help-doc.html">Help</a></li>
|
| </ul>
|
| <div class="aboutLanguage"><em>Ignite - In-Memory Data Fabric</em></div>
|
| </div>
|
| <div class="subNav">
|
| <ul class="navList">
|
| <li>Prev Class</li>
|
| <li>Next Class</li>
|
| </ul>
|
| <ul class="navList">
|
| <li><a href="../../../../index.html?org/apache/ignite/messaging/MessagingListenActor.html" target="_top">Frames</a></li>
|
| <li><a href="MessagingListenActor.html" target="_top">No Frames</a></li>
|
| </ul>
|
| <ul class="navList" id="allclasses_navbar_top">
|
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
| </ul>
|
| <div>
|
| <script type="text/javascript"><!--
|
| allClassesLink = document.getElementById("allclasses_navbar_top");
|
| if(window==top) {
|
| allClassesLink.style.display = "block";
|
| }
|
| else {
|
| allClassesLink.style.display = "none";
|
| }
|
| //-->
|
| </script>
|
| </div>
|
| <div>
|
| <ul class="subNavList">
|
| <li>Summary: </li>
|
| <li>Nested | </li>
|
| <li>Field | </li>
|
| <li><a href="#constructor_summary">Constr</a> | </li>
|
| <li><a href="#method_summary">Method</a></li>
|
| </ul>
|
| <ul class="subNavList">
|
| <li>Detail: </li>
|
| <li>Field | </li>
|
| <li><a href="#constructor_detail">Constr</a> | </li>
|
| <li><a href="#method_detail">Method</a></li>
|
| </ul>
|
| </div>
|
| <a name="skip-navbar_top">
|
| <!-- -->
|
| </a></div>
|
| <!-- ========= END OF TOP NAVBAR ========= -->
|
| <!-- ======== START OF CLASS DATA ======== -->
|
| <div class="header">
|
| <div class="subTitle">org.apache.ignite.messaging</div>
|
| <h2 title="Class MessagingListenActor" class="title">Class MessagingListenActor<span class='angle_bracket'><</span>T<span class='angle_bracket'>></span></h2>
|
| </div>
|
| <div class="contentContainer">
|
| <ul class="inheritance">
|
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
|
| <li>
|
| <ul class="inheritance">
|
| <li>org.apache.ignite.messaging.MessagingListenActor<span class='angle_bracket'><</span>T<span class='angle_bracket'>></span></li>
|
| </ul>
|
| </li>
|
| </ul>
|
| <div class="description">
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <dl>
|
| <dt>All Implemented Interfaces:</dt>
|
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'><</span><a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>,T<span class='angle_bracket'>></span></dd>
|
| </dl>
|
| <hr>
|
| <br>
|
| <pre>public abstract class <span class="strong">MessagingListenActor<span class='angle_bracket'><</span>T<span class='angle_bracket'>></span></span>
|
| extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
|
| implements <a href="../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'><</span><a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>,T<span class='angle_bracket'>></span></pre>
|
| <div class="block">Convenience actor-base adapter for <a href="../../../../org/apache/ignite/IgniteMessaging.html#localListen(java.lang.Object,%20org.apache.ignite.lang.IgniteBiPredicate)"><code>IgniteMessaging.localListen(Object, IgniteBiPredicate)</code></a> |
| method.</div>
|
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#org.apache.ignite.messaging.MessagingListenActor">Serialized Form</a></dd></dl>
|
| </li>
|
| </ul>
|
| </div>
|
| <div class="summary">
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
| <ul class="blockList">
|
| <li class="blockList"><a name="constructor_summary">
|
| <!-- -->
|
| </a>
|
| <h3>Constructor Summary</h3>
|
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
| <tr>
|
| <th class="colOne" scope="col">Constructor and Description</th>
|
| </tr>
|
| <tr class="altColor">
|
| <td class="colOne"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#MessagingListenActor()">MessagingListenActor</a></strong>()</code> </td>
|
| </tr>
|
| </table>
|
| </li>
|
| </ul>
|
| <!-- ========== METHOD SUMMARY =========== -->
|
| <ul class="blockList">
|
| <li class="blockList"><a name="method_summary">
|
| <!-- -->
|
| </a>
|
| <h3>Method Summary</h3>
|
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
| <caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
| <tr>
|
| <th class="colFirst" scope="col">Modifier and Type</th>
|
| <th class="colLast" scope="col">Method and Description</th>
|
| </tr>
|
| <tr class="altColor">
|
| <td class="colFirst"><code>boolean</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#apply(java.util.UUID,%20T)">apply</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> nodeId,
|
| <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html" title="type parameter in MessagingListenActor">T</a> rcvMsg)</code>
|
| <div class="block">Predicate body.</div>
|
| </td>
|
| </tr>
|
| <tr class="rowColor">
|
| <td class="colFirst"><code>protected <a href="../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a></code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#ignite()">ignite</a></strong>()</code>
|
| <div class="block">Gets grid instance associated with this actor.</div>
|
| </td>
|
| </tr>
|
| <tr class="altColor">
|
| <td class="colFirst"><code>protected void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#onError(java.lang.Throwable)">onError</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> e)</code>
|
| <div class="block">This method is called in case when method <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#receive(java.util.UUID,%20T)"><code>receive(UUID, Object)</code></a> threw an exception.</div>
|
| </td>
|
| </tr>
|
| <tr class="rowColor">
|
| <td class="colFirst"><code>protected abstract void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#receive(java.util.UUID,%20T)">receive</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> nodeId,
|
| <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html" title="type parameter in MessagingListenActor">T</a> rcvMsg)</code>
|
| <div class="block">This method receives the message.</div>
|
| </td>
|
| </tr>
|
| <tr class="altColor">
|
| <td class="colFirst"><code>protected void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#respond(java.lang.Object)">respond</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> respMsg)</code>
|
| <div class="block">Responds to the original sender node with given message and continues to listen for the new messages.</div>
|
| </td>
|
| </tr>
|
| <tr class="rowColor">
|
| <td class="colFirst"><code>protected void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#respond(java.util.UUID,%20java.lang.Object)">respond</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> id,
|
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> respMsg)</code>
|
| <div class="block">Responds to the provided node with given message and continues to listen for the new messages.</div>
|
| </td>
|
| </tr>
|
| <tr class="altColor">
|
| <td class="colFirst"><code>protected void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#skip()">skip</a></strong>()</code>
|
| <div class="block">Skips current message and continues to listen for new message.</div>
|
| </td>
|
| </tr>
|
| <tr class="rowColor">
|
| <td class="colFirst"><code>protected void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#stop()">stop</a></strong>()</code>
|
| <div class="block">This method instructs underlying implementation to stop receiving new messages and unregister |
| the message listener.</div>
|
| </td>
|
| </tr>
|
| <tr class="altColor">
|
| <td class="colFirst"><code>protected void</code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#stop(java.lang.Object)">stop</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> respMsg)</code>
|
| <div class="block">This method sends the response message to the original sender node and instructs underlying |
| implementation to stop receiving new messages and unregister the message listener.</div>
|
| </td>
|
| </tr>
|
| <tr class="rowColor">
|
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
|
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#toString()">toString</a></strong>()</code></td>
|
| </tr>
|
| </table>
|
| <ul class="blockList">
|
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
| <!-- -->
|
| </a>
|
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
|
| </ul>
|
| </li>
|
| </ul>
|
| </li>
|
| </ul>
|
| </div>
|
| <div class="details">
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
| <ul class="blockList">
|
| <li class="blockList"><a name="constructor_detail">
|
| <!-- -->
|
| </a>
|
| <h3>Constructor Detail</h3>
|
| <a name="MessagingListenActor()">
|
| <!-- -->
|
| </a>
|
| <ul class="blockListLast">
|
| <li class="blockList">
|
| <h4>MessagingListenActor</h4>
|
| <pre>public MessagingListenActor()</pre>
|
| </li>
|
| </ul>
|
| </li>
|
| </ul>
|
| <!-- ============ METHOD DETAIL ========== -->
|
| <ul class="blockList">
|
| <li class="blockList"><a name="method_detail">
|
| <!-- -->
|
| </a>
|
| <h3>Method Detail</h3>
|
| <a name="ignite()">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>ignite</h4>
|
| <pre>protected final <a href="../../../../org/apache/ignite/Ignite.html" title="interface in org.apache.ignite">Ignite</a> ignite()</pre>
|
| <div class="block">Gets grid instance associated with this actor.</div>
|
| <dl><dt><span class="strong">Returns:</span></dt><dd>Grid instance associated with this actor.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="apply(java.util.UUID,java.lang.Object)">
|
| <!-- -->
|
| </a><a name="apply(java.util.UUID, T)">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>apply</h4>
|
| <pre>public final boolean apply(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> nodeId,
|
| <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html" title="type parameter in MessagingListenActor">T</a> rcvMsg)</pre>
|
| <div class="block">Predicate body.</div>
|
| <dl>
|
| <dt><strong>Specified by:</strong></dt>
|
| <dd><code><a href="../../../../org/apache/ignite/lang/IgniteBiPredicate.html#apply(E1,%20E2)">apply</a></code> in interface <code><a href="../../../../org/apache/ignite/lang/IgniteBiPredicate.html" title="interface in org.apache.ignite.lang">IgniteBiPredicate</a><span class='angle_bracket'><</span><a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a>,<a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html" title="type parameter in MessagingListenActor">T</a><span class='angle_bracket'>></span></code></dd>
|
| <dt><span class="strong">Parameters:</span></dt><dd><code>nodeId</code> - First parameter.</dd><dd><code>rcvMsg</code> - Second parameter.</dd>
|
| <dt><span class="strong">Returns:</span></dt><dd>Return value.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="onError(java.lang.Throwable)">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>onError</h4>
|
| <pre>protected void onError(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> e)</pre>
|
| <div class="block">This method is called in case when method <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#receive(java.util.UUID,%20T)"><code>receive(UUID, Object)</code></a> threw an exception. |
| Insides of this method the implementation should call any of the <code>respond</code>, <code>stop</code> |
| or <code>skip</code> methods. If overriding method does nothing - than return value of method |
| <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#receive(java.util.UUID,%20T)"><code>receive(UUID, Object)</code></a> is undefined. |
| <p> |
| Default implementation simply calls method <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#stop()"><code>stop()</code></a>.</div>
|
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>e</code> - Exception thrown from method <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#receive(java.util.UUID,%20T)"><code>receive(UUID, Object)</code></a>.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="receive(java.util.UUID,java.lang.Object)">
|
| <!-- -->
|
| </a><a name="receive(java.util.UUID, T)">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>receive</h4>
|
| <pre>protected abstract void receive(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> nodeId,
|
| <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html" title="type parameter in MessagingListenActor">T</a> rcvMsg)
|
| throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></pre>
|
| <div class="block">This method receives the message. This is the only method that subclass needs to override. |
| Insides of this method the implementation should call any of the <code>respond</code>, <code>stop</code> |
| or <code>skip</code> methods. Note that if none of these methods are called - listener will continue |
| listen for the new messages.</div>
|
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>nodeId</code> - ID of the sender node.</dd><dd><code>rcvMsg</code> - Received message.</dd>
|
| <dt><span class="strong">Throws:</span></dt>
|
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code> - Thrown in case of any errors. Method <a href="../../../../org/apache/ignite/messaging/MessagingListenActor.html#onError(java.lang.Throwable)"><code>onError(Throwable)</code></a>} will |
| be called right before returning from this method.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="stop()">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>stop</h4>
|
| <pre>protected final void stop()</pre>
|
| <div class="block">This method instructs underlying implementation to stop receiving new messages and unregister |
| the message listener. |
| <p> |
| Note that subclasses can call any of <code>respond</code>, <code>stop</code> or <code>skip</code> methods any |
| number of times. Only the last executed method will determine whether or not the implementation will |
| continue listen for the new messages.</div>
|
| </li>
|
| </ul>
|
| <a name="stop(java.lang.Object)">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>stop</h4>
|
| <pre>protected final void stop(@Nullable
|
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> respMsg)
|
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre>
|
| <div class="block">This method sends the response message to the original sender node and instructs underlying |
| implementation to stop receiving new messages and unregister the message listener. |
| <p> |
| Note that subclasses can call any of <code>respond</code>, <code>stop</code> or <code>skip</code> methods any |
| number of times. Only the last executed method will determine whether or not the implementation will |
| continue listen for the new messages.</div>
|
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>respMsg</code> - Optional response message. If not <code>null</code> - it will be sent to the original |
| sender node.</dd>
|
| <dt><span class="strong">Throws:</span></dt>
|
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - Thrown in case of any errors.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="skip()">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>skip</h4>
|
| <pre>protected final void skip()</pre>
|
| <div class="block">Skips current message and continues to listen for new message. This method simply calls |
| <code>respond(null)</code>. |
| <p> |
| Note that subclasses can call any of <code>respond</code>, <code>stop</code> or <code>skip</code> methods any |
| number of times. Only the last executed method will determine whether or not the implementation will |
| continue listen for the new messages.</div>
|
| </li>
|
| </ul>
|
| <a name="respond(java.lang.Object)">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>respond</h4>
|
| <pre>protected final void respond(@Nullable
|
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> respMsg)
|
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre>
|
| <div class="block">Responds to the original sender node with given message and continues to listen for the new messages. |
| <p> |
| Note that subclasses can call any of <code>respond</code>, <code>stop</code> or <code>skip</code> methods any |
| number of times. Only the last executed method will determine whether or not the implementation will |
| continue listen for the new messages.</div>
|
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>respMsg</code> - Optional response message. If not <code>null</code> - it will be sent to the original |
| sender node.</dd>
|
| <dt><span class="strong">Throws:</span></dt>
|
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - Thrown in case of any errors.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="respond(java.util.UUID, java.lang.Object)">
|
| <!-- -->
|
| </a>
|
| <ul class="blockList">
|
| <li class="blockList">
|
| <h4>respond</h4>
|
| <pre>protected final void respond(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> id,
|
| @Nullable
|
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> respMsg)
|
| throws <a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></pre>
|
| <div class="block">Responds to the provided node with given message and continues to listen for the new messages. |
| <p> |
| Note that subclasses can call any of <code>respond</code>, <code>stop</code> or <code>skip</code> methods any |
| number of times. Only the last executed method will determine whether or not the implementation will |
| continue listen for the new messages.</div>
|
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - ID of the node to send the message to, if any.</dd><dd><code>respMsg</code> - Optional response message. If not <code>null</code> - it will be sent to the original |
| sender node.</dd>
|
| <dt><span class="strong">Throws:</span></dt>
|
| <dd><code><a href="../../../../org/apache/ignite/IgniteException.html" title="class in org.apache.ignite">IgniteException</a></code> - Thrown in case of any errors.</dd></dl>
|
| </li>
|
| </ul>
|
| <a name="toString()">
|
| <!-- -->
|
| </a>
|
| <ul class="blockListLast">
|
| <li class="blockList">
|
| <h4>toString</h4>
|
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre>
|
| <dl>
|
| <dt><strong>Overrides:</strong></dt>
|
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
|
| </dl>
|
| </li>
|
| </ul>
|
| </li>
|
| </ul>
|
| </li>
|
| </ul>
|
| </div>
|
| </div>
|
| <!-- ========= END OF CLASS DATA ========= -->
|
| <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
| <div class="bottomNav"><a name="navbar_bottom">
|
| <!-- -->
|
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
| <!-- -->
|
| </a>
|
| <ul class="navList" title="Navigation">
|
| <li><a href="../../../../overview-summary.html">Overview</a></li>
|
| <li><a href="package-summary.html">Package</a></li>
|
| <li class="navBarCell1Rev">Class</li>
|
| <li><a href="class-use/MessagingListenActor.html">Use</a></li>
|
| <li><a href="package-tree.html">Tree</a></li>
|
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
| <li><a href="../../../../index-all.html">Index</a></li>
|
| <li><a href="../../../../help-doc.html">Help</a></li>
|
| </ul>
|
| <div class="aboutLanguage"><em>Ignite - In-Memory Data Fabric</em></div>
|
| </div>
|
| <div class="subNav">
|
| <ul class="navList">
|
| <li>Prev Class</li>
|
| <li>Next Class</li>
|
| </ul>
|
| <ul class="navList">
|
| <li><a href="../../../../index.html?org/apache/ignite/messaging/MessagingListenActor.html" target="_top">Frames</a></li>
|
| <li><a href="MessagingListenActor.html" target="_top">No Frames</a></li>
|
| </ul>
|
| <ul class="navList" id="allclasses_navbar_bottom">
|
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
| </ul>
|
| <div>
|
| <script type="text/javascript"><!--
|
| allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
| if(window==top) {
|
| allClassesLink.style.display = "block";
|
| }
|
| else {
|
| allClassesLink.style.display = "none";
|
| }
|
| //-->
|
| </script>
|
| </div>
|
| <div>
|
| <ul class="subNavList">
|
| <li>Summary: </li>
|
| <li>Nested | </li>
|
| <li>Field | </li>
|
| <li><a href="#constructor_summary">Constr</a> | </li>
|
| <li><a href="#method_summary">Method</a></li>
|
| </ul>
|
| <ul class="subNavList">
|
| <li>Detail: </li>
|
| <li>Field | </li>
|
| <li><a href="#constructor_detail">Constr</a> | </li>
|
| <li><a href="#method_detail">Method</a></li>
|
| </ul>
|
| </div>
|
| <a name="skip-navbar_bottom">
|
| <!-- -->
|
| </a></div>
|
| <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
| <p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://apache.org/projects/ignite.html"><nobr>2015 Copyright © Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Fabric</b> </td> <td>: ver. <strong>1.5.0-final-SNAPSHOT</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>: Äåêàáðü 21 2015 </td> </tr> </tbody> </table> </td> </tr> </table></small></p>
|
| <!--FOOTER--><script type='text/javascript'>SyntaxHighlighter.all();dp.SyntaxHighlighter.HighlightAll('code');</script> |
| </body> |
|
|
| </html>
|