zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Z 2 <!-- NewPage -->
3 <html lang="zh">
4 <head>
5 <!-- Generated by javadoc (1.8.0_65) on Mon May 18 20:37:48 CST 2020 -->
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <title>MQTxManagerService (tx-client 4.1.0 API)</title>
8 <meta name="date" content="2020-05-18">
9 <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
10 <script type="text/javascript" src="../../../../../script.js"></script>
11 </head>
12 <body>
13 <script type="text/javascript"><!--
14     try {
15         if (location.href.indexOf('is-external=true') == -1) {
16             parent.document.title="MQTxManagerService (tx-client 4.1.0 API)";
17         }
18     }
19     catch(err) {
20     }
21 //-->
22 var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6};
23 var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],4:["t3","抽象方法"]};
24 var altColor = "altColor";
25 var rowColor = "rowColor";
26 var tableTab = "tableTab";
27 var activeTableTab = "activeTableTab";
28 </script>
29 <noscript>
30 <div>您的浏览器已禁用 JavaScript。</div>
31 </noscript>
32 <!-- ========= START OF TOP NAVBAR ======= -->
33 <div class="topNav"><a name="navbar.top">
34 <!--   -->
35 </a>
36 <div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
37 <a name="navbar.top.firstrow">
38 <!--   -->
39 </a>
40 <ul class="navList" title="导航">
41 <li><a href="../../../../../overview-summary.html">概览</a></li>
42 <li><a href="package-summary.html">程序包</a></li>
43 <li class="navBarCell1Rev">类</li>
44 <li><a href="class-use/MQTxManagerService.html">使用</a></li>
45 <li><a href="package-tree.html">树</a></li>
46 <li><a href="../../../../../deprecated-list.html">已过时</a></li>
47 <li><a href="../../../../../index-all.html">索引</a></li>
48 <li><a href="../../../../../help-doc.html">帮助</a></li>
49 </ul>
50 </div>
51 <div class="subNav">
52 <ul class="navList">
53 <li>上一个类</li>
54 <li><a href="../../../../../com/codingapi/tx/netty/service/NettyControlService.html" title="com.codingapi.tx.netty.service中的接口"><span class="typeNameLink">下一个类</span></a></li>
55 </ul>
56 <ul class="navList">
57 <li><a href="../../../../../index.html?com/codingapi/tx/netty/service/MQTxManagerService.html" target="_top">框架</a></li>
58 <li><a href="MQTxManagerService.html" target="_top">无框架</a></li>
59 </ul>
60 <ul class="navList" id="allclasses_navbar_top">
61 <li><a href="../../../../../allclasses-noframe.html">所有类</a></li>
62 </ul>
63 <div>
64 <script type="text/javascript"><!--
65   allClassesLink = document.getElementById("allclasses_navbar_top");
66   if(window==top) {
67     allClassesLink.style.display = "block";
68   }
69   else {
70     allClassesLink.style.display = "none";
71   }
72   //-->
73 </script>
74 </div>
75 <div>
76 <ul class="subNavList">
77 <li>概要:&nbsp;</li>
78 <li>嵌套&nbsp;|&nbsp;</li>
79 <li>字段&nbsp;|&nbsp;</li>
80 <li>构造器&nbsp;|&nbsp;</li>
81 <li><a href="#method.summary">方法</a></li>
82 </ul>
83 <ul class="subNavList">
84 <li>详细资料:&nbsp;</li>
85 <li>字段&nbsp;|&nbsp;</li>
86 <li>构造器&nbsp;|&nbsp;</li>
87 <li><a href="#method.detail">方法</a></li>
88 </ul>
89 </div>
90 <a name="skip.navbar.top">
91 <!--   -->
92 </a></div>
93 <!-- ========= END OF TOP NAVBAR ========= -->
94 <!-- ======== START OF CLASS DATA ======== -->
95 <div class="header">
96 <div class="subTitle">com.codingapi.tx.netty.service</div>
97 <h2 title="接口 MQTxManagerService" class="title">接口 MQTxManagerService</h2>
98 </div>
99 <div class="contentContainer">
100 <div class="description">
101 <ul class="blockList">
102 <li class="blockList">
103 <dl>
104 <dt>所有已知实现类:</dt>
105 <dd><a href="../../../../../com/codingapi/tx/netty/service/impl/MQTxManagerServiceImpl.html" title="com.codingapi.tx.netty.service.impl中的类">MQTxManagerServiceImpl</a></dd>
106 </dl>
107 <hr>
108 <br>
109 <pre>public interface <span class="typeNameLabel">MQTxManagerService</span></pre>
110 <div class="block">Created by lorne on 2017/6/7.</div>
111 </li>
112 </ul>
113 </div>
114 <div class="summary">
115 <ul class="blockList">
116 <li class="blockList">
117 <!-- ========== METHOD SUMMARY =========== -->
118 <ul class="blockList">
119 <li class="blockList"><a name="method.summary">
120 <!--   -->
121 </a>
122 <h3>方法概要</h3>
123 <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
124 <caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
125 <tr>
126 <th class="colFirst" scope="col">限定符和类型</th>
127 <th class="colLast" scope="col">方法和说明</th>
128 </tr>
129 <tr id="i0" class="altColor">
130 <td class="colFirst"><code><a href="../../../../../com/codingapi/tx/model/TxGroup.html" title="com.codingapi.tx.model中的类">TxGroup</a></code></td>
131 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#addTransactionGroup-java.lang.String-java.lang.String-boolean-java.lang.String-">addTransactionGroup</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
132                    <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;taskId,
133                    boolean&nbsp;isGroup,
134                    <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;methodStr)</code>
135 <div class="block">添加事务组子对象</div>
136 </td>
137 </tr>
138 <tr id="i1" class="rowColor">
139 <td class="colFirst"><code>int</code></td>
140 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#cleanNotifyTransaction-java.lang.String-java.lang.String-">cleanNotifyTransaction</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
141                       <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;taskId)</code>
142 <div class="block">检查事务状态 通过netty管道</div>
143 </td>
144 </tr>
145 <tr id="i2" class="altColor">
146 <td class="colFirst"><code>int</code></td>
147 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#cleanNotifyTransactionHttp-java.lang.String-java.lang.String-">cleanNotifyTransactionHttp</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
148                           <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;waitTaskId)</code>
149 <div class="block">检查并清理事务数据</div>
150 </td>
151 </tr>
152 <tr id="i3" class="rowColor">
153 <td class="colFirst"><code>int</code></td>
154 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#closeTransactionGroup-java.lang.String-int-">closeTransactionGroup</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
155                      int&nbsp;state)</code>
156 <div class="block">关闭事务组-进入事务提交第一阶段</div>
157 </td>
158 </tr>
159 <tr id="i4" class="altColor">
160 <td class="colFirst"><code>void</code></td>
161 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#createTransactionGroup-java.lang.String-">createTransactionGroup</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId)</code>
162 <div class="block">创建事务组</div>
163 </td>
164 </tr>
165 <tr id="i5" class="rowColor">
166 <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
167 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#httpGetServer--">httpGetServer</a></span>()</code>
168 <div class="block">获取TM服务地址</div>
169 </td>
170 </tr>
171 <tr id="i6" class="altColor">
172 <td class="colFirst"><code>void</code></td>
173 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#sendCompensateMsg-java.lang.String-long-com.codingapi.tx.aop.bean.TxTransactionInfo-int-">sendCompensateMsg</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
174                  long&nbsp;time,
175                  <a href="../../../../../com/codingapi/tx/aop/bean/TxTransactionInfo.html" title="com.codingapi.tx.aop.bean中的类">TxTransactionInfo</a>&nbsp;info,
176                  int&nbsp;startError)</code>
177 <div class="block">记录补偿事务数据到tm</div>
178 </td>
179 </tr>
180 <tr id="i7" class="rowColor">
181 <td class="colFirst"><code>void</code></td>
182 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/codingapi/tx/netty/service/MQTxManagerService.html#uploadModelInfo--">uploadModelInfo</a></span>()</code>
183 <div class="block">上传模块信息</div>
184 </td>
185 </tr>
186 </table>
187 </li>
188 </ul>
189 </li>
190 </ul>
191 </div>
192 <div class="details">
193 <ul class="blockList">
194 <li class="blockList">
195 <!-- ============ METHOD DETAIL ========== -->
196 <ul class="blockList">
197 <li class="blockList"><a name="method.detail">
198 <!--   -->
199 </a>
200 <h3>方法详细资料</h3>
201 <a name="uploadModelInfo--">
202 <!--   -->
203 </a>
204 <ul class="blockList">
205 <li class="blockList">
206 <h4>uploadModelInfo</h4>
207 <pre>void&nbsp;uploadModelInfo()</pre>
208 <div class="block">上传模块信息</div>
209 </li>
210 </ul>
211 <a name="createTransactionGroup-java.lang.String-">
212 <!--   -->
213 </a>
214 <ul class="blockList">
215 <li class="blockList">
216 <h4>createTransactionGroup</h4>
217 <pre>void&nbsp;createTransactionGroup(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId)</pre>
218 <div class="block">创建事务组</div>
219 <dl>
220 <dt><span class="paramLabel">参数:</span></dt>
221 <dd><code>groupId</code> - 事务组id 当为补偿模式时将会自动获取补偿的groupId</dd>
222 </dl>
223 </li>
224 </ul>
225 <a name="addTransactionGroup-java.lang.String-java.lang.String-boolean-java.lang.String-">
226 <!--   -->
227 </a>
228 <ul class="blockList">
229 <li class="blockList">
230 <h4>addTransactionGroup</h4>
231 <pre><a href="../../../../../com/codingapi/tx/model/TxGroup.html" title="com.codingapi.tx.model中的类">TxGroup</a>&nbsp;addTransactionGroup(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
232                             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;taskId,
233                             boolean&nbsp;isGroup,
234                             <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;methodStr)</pre>
235 <div class="block">添加事务组子对象</div>
236 <dl>
237 <dt><span class="paramLabel">参数:</span></dt>
238 <dd><code>groupId</code> - 事务组id</dd>
239 <dd><code>taskId</code> - 任务Id</dd>
240 <dd><code>isGroup</code> - 是否合并到事务组 true合并 false不合并</dd>
241 <dd><code>methodStr</code> - 方法参数列表</dd>
242 <dt><span class="returnLabel">返回:</span></dt>
243 <dd>事务组TxGroup</dd>
244 </dl>
245 </li>
246 </ul>
247 <a name="closeTransactionGroup-java.lang.String-int-">
248 <!--   -->
249 </a>
250 <ul class="blockList">
251 <li class="blockList">
252 <h4>closeTransactionGroup</h4>
253 <pre>int&nbsp;closeTransactionGroup(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
254                           int&nbsp;state)</pre>
255 <div class="block">关闭事务组-进入事务提交第一阶段</div>
256 <dl>
257 <dt><span class="paramLabel">参数:</span></dt>
258 <dd><code>groupId</code> - 事务组id</dd>
259 <dd><code>state</code> - 提交或者回滚 1提交0回滚</dd>
260 <dt><span class="returnLabel">返回:</span></dt>
261 <dd>1 成功 0失败 -1 事务强制回滚</dd>
262 </dl>
263 </li>
264 </ul>
265 <a name="cleanNotifyTransaction-java.lang.String-java.lang.String-">
266 <!--   -->
267 </a>
268 <ul class="blockList">
269 <li class="blockList">
270 <h4>cleanNotifyTransaction</h4>
271 <pre>int&nbsp;cleanNotifyTransaction(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
272                            <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;taskId)</pre>
273 <div class="block">检查事务状态 通过netty管道</div>
274 <dl>
275 <dt><span class="paramLabel">参数:</span></dt>
276 <dd><code>groupId</code> - 事务组id</dd>
277 <dd><code>taskId</code> - 任务id</dd>
278 <dt><span class="returnLabel">返回:</span></dt>
279 <dd>事务状态</dd>
280 </dl>
281 </li>
282 </ul>
283 <a name="cleanNotifyTransactionHttp-java.lang.String-java.lang.String-">
284 <!--   -->
285 </a>
286 <ul class="blockList">
287 <li class="blockList">
288 <h4>cleanNotifyTransactionHttp</h4>
289 <pre>int&nbsp;cleanNotifyTransactionHttp(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
290                                <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;waitTaskId)</pre>
291 <div class="block">检查并清理事务数据</div>
292 <dl>
293 <dt><span class="paramLabel">参数:</span></dt>
294 <dd><code>groupId</code> - 事务组id</dd>
295 <dd><code>waitTaskId</code> - 任务id</dd>
296 <dt><span class="returnLabel">返回:</span></dt>
297 <dd>事务状态</dd>
298 </dl>
299 </li>
300 </ul>
301 <a name="sendCompensateMsg-java.lang.String-long-com.codingapi.tx.aop.bean.TxTransactionInfo-int-">
302 <!--   -->
303 </a>
304 <ul class="blockList">
305 <li class="blockList">
306 <h4>sendCompensateMsg</h4>
307 <pre>void&nbsp;sendCompensateMsg(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;groupId,
308                        long&nbsp;time,
309                        <a href="../../../../../com/codingapi/tx/aop/bean/TxTransactionInfo.html" title="com.codingapi.tx.aop.bean中的类">TxTransactionInfo</a>&nbsp;info,
310                        int&nbsp;startError)</pre>
311 <div class="block">记录补偿事务数据到tm</div>
312 <dl>
313 <dt><span class="paramLabel">参数:</span></dt>
314 <dd><code>groupId</code> - 事务组Id</dd>
315 <dd><code>time</code> - 执行时间</dd>
316 <dd><code>info</code> - 事务信息</dd>
317 <dd><code>startError</code> - 启动模块db执行异常</dd>
318 </dl>
319 </li>
320 </ul>
321 <a name="httpGetServer--">
322 <!--   -->
323 </a>
324 <ul class="blockListLast">
325 <li class="blockList">
326 <h4>httpGetServer</h4>
327 <pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;httpGetServer()</pre>
328 <div class="block">获取TM服务地址</div>
329 <dl>
330 <dt><span class="returnLabel">返回:</span></dt>
331 <dd>txServer</dd>
332 </dl>
333 </li>
334 </ul>
335 </li>
336 </ul>
337 </li>
338 </ul>
339 </div>
340 </div>
341 <!-- ========= END OF CLASS DATA ========= -->
342 <!-- ======= START OF BOTTOM NAVBAR ====== -->
343 <div class="bottomNav"><a name="navbar.bottom">
344 <!--   -->
345 </a>
346 <div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
347 <a name="navbar.bottom.firstrow">
348 <!--   -->
349 </a>
350 <ul class="navList" title="导航">
351 <li><a href="../../../../../overview-summary.html">概览</a></li>
352 <li><a href="package-summary.html">程序包</a></li>
353 <li class="navBarCell1Rev">类</li>
354 <li><a href="class-use/MQTxManagerService.html">使用</a></li>
355 <li><a href="package-tree.html">树</a></li>
356 <li><a href="../../../../../deprecated-list.html">已过时</a></li>
357 <li><a href="../../../../../index-all.html">索引</a></li>
358 <li><a href="../../../../../help-doc.html">帮助</a></li>
359 </ul>
360 </div>
361 <div class="subNav">
362 <ul class="navList">
363 <li>上一个类</li>
364 <li><a href="../../../../../com/codingapi/tx/netty/service/NettyControlService.html" title="com.codingapi.tx.netty.service中的接口"><span class="typeNameLink">下一个类</span></a></li>
365 </ul>
366 <ul class="navList">
367 <li><a href="../../../../../index.html?com/codingapi/tx/netty/service/MQTxManagerService.html" target="_top">框架</a></li>
368 <li><a href="MQTxManagerService.html" target="_top">无框架</a></li>
369 </ul>
370 <ul class="navList" id="allclasses_navbar_bottom">
371 <li><a href="../../../../../allclasses-noframe.html">所有类</a></li>
372 </ul>
373 <div>
374 <script type="text/javascript"><!--
375   allClassesLink = document.getElementById("allclasses_navbar_bottom");
376   if(window==top) {
377     allClassesLink.style.display = "block";
378   }
379   else {
380     allClassesLink.style.display = "none";
381   }
382   //-->
383 </script>
384 </div>
385 <div>
386 <ul class="subNavList">
387 <li>概要:&nbsp;</li>
388 <li>嵌套&nbsp;|&nbsp;</li>
389 <li>字段&nbsp;|&nbsp;</li>
390 <li>构造器&nbsp;|&nbsp;</li>
391 <li><a href="#method.summary">方法</a></li>
392 </ul>
393 <ul class="subNavList">
394 <li>详细资料:&nbsp;</li>
395 <li>字段&nbsp;|&nbsp;</li>
396 <li>构造器&nbsp;|&nbsp;</li>
397 <li><a href="#method.detail">方法</a></li>
398 </ul>
399 </div>
400 <a name="skip.navbar.bottom">
401 <!--   -->
402 </a></div>
403 <!-- ======== END OF BOTTOM NAVBAR ======= -->
404 <p class="legalCopy"><small>Copyright &#169; 2020. All rights reserved.</small></p>
405 </body>
406 </html>