Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1107 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!-- NewPage -->
3
<html lang="en">
4
<head>
5
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:46 CET 2013 -->
6
<title>AsyncExecutor (libgdx API)</title>
7
<meta name="date" content="2013-11-03">
8
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
9
</head>
10
<body>
11
<script type="text/javascript"><!--
12
    if (location.href.indexOf('is-external=true') == -1) {
13
        parent.document.title="AsyncExecutor (libgdx API)";
14
    }
15
//-->
16
</script>
17
<noscript>
18
<div>JavaScript is disabled on your browser.</div>
19
</noscript>
20
<!-- ========= START OF TOP NAVBAR ======= -->
21
<div class="topNav"><a name="navbar_top">
22
<!--   -->
23
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24
<!--   -->
25
</a>
26
<ul class="navList" title="Navigation">
27
<li><a href="../../../../../overview-summary.html">Overview</a></li>
28
<li><a href="package-summary.html">Package</a></li>
29
<li class="navBarCell1Rev">Class</li>
30
<li><a href="class-use/AsyncExecutor.html">Use</a></li>
31
<li><a href="package-tree.html">Tree</a></li>
32
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
33
<li><a href="../../../../../index-all.html">Index</a></li>
34
<li><a href="../../../../../help-doc.html">Help</a></li>
35
</ul>
36
<div class="aboutLanguage"><em>
37
                                libgdx API
38
                                <style>
39
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
40
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
41
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
42
                                .TableHeadingColor { background:#EEEEFF; }
43
                                a { text-decoration:none }
44
                                a:hover { text-decoration:underline }
45
                                a:link, a:visited { color:blue }
46
                                table { border:0px }
47
                                .TableRowColor td:first-child { border-left:1px solid black }
48
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
49
                                hr { border:0px; border-bottom:1px solid #333366; }
50
                                </style>
51
                        </em></div>
52
</div>
53
<div class="subNav">
54
<ul class="navList">
55
<li>Prev Class</li>
56
<li><a href="../../../../../com/badlogic/gdx/utils/async/AsyncResult.html" title="class in com.badlogic.gdx.utils.async"><span class="strong">Next Class</span></a></li>
57
</ul>
58
<ul class="navList">
59
<li><a href="../../../../../index.html?com/badlogic/gdx/utils/async/AsyncExecutor.html" target="_top">Frames</a></li>
60
<li><a href="AsyncExecutor.html" target="_top">No Frames</a></li>
61
</ul>
62
<ul class="navList" id="allclasses_navbar_top">
63
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
64
</ul>
65
<div>
66
<script type="text/javascript"><!--
67
  allClassesLink = document.getElementById("allclasses_navbar_top");
68
  if(window==top) {
69
    allClassesLink.style.display = "block";
70
  }
71
  else {
72
    allClassesLink.style.display = "none";
73
  }
74
  //-->
75
</script>
76
</div>
77
<div>
78
<ul class="subNavList">
79
<li>Summary:&nbsp;</li>
80
<li>Nested&nbsp;|&nbsp;</li>
81
<li>Field&nbsp;|&nbsp;</li>
82
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
83
<li><a href="#method_summary">Method</a></li>
84
</ul>
85
<ul class="subNavList">
86
<li>Detail:&nbsp;</li>
87
<li>Field&nbsp;|&nbsp;</li>
88
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
89
<li><a href="#method_detail">Method</a></li>
90
</ul>
91
</div>
92
<a name="skip-navbar_top">
93
<!--   -->
94
</a></div>
95
<!-- ========= END OF TOP NAVBAR ========= -->
96
<!-- ======== START OF CLASS DATA ======== -->
97
<div class="header">
98
<div class="subTitle">com.badlogic.gdx.utils.async</div>
99
<h2 title="Class AsyncExecutor" class="title">Class AsyncExecutor</h2>
100
</div>
101
<div class="contentContainer">
102
<ul class="inheritance">
103
<li>java.lang.Object</li>
104
<li>
105
<ul class="inheritance">
106
<li>com.badlogic.gdx.utils.async.AsyncExecutor</li>
107
</ul>
108
</li>
109
</ul>
110
<div class="description">
111
<ul class="blockList">
112
<li class="blockList">
113
<dl>
114
<dt>All Implemented Interfaces:</dt>
115
<dd><a href="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</a></dd>
116
</dl>
117
<hr>
118
<br>
119
<pre>public class <span class="strong">AsyncExecutor</span>
120
extends java.lang.Object
121
implements <a href="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</a></pre>
122
<div class="block">Allows asnynchronous execution of <a href="../../../../../com/badlogic/gdx/utils/async/AsyncTask.html" title="interface in com.badlogic.gdx.utils.async"><code>AsyncTask</code></a> instances on a separate thread.
123
 Needs to be disposed via a call to <a href="../../../../../com/badlogic/gdx/utils/async/AsyncExecutor.html#dispose()"><code>dispose()</code></a> when no longer used, in which
124
 case the executor waits for running tasks to finish. Scheduled but not yet
125
 running tasks will not be executed.</div>
126
<dl><dt><span class="strong">Author:</span></dt>
127
  <dd>badlogic</dd></dl>
128
</li>
129
</ul>
130
</div>
131
<div class="summary">
132
<ul class="blockList">
133
<li class="blockList">
134
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
135
<ul class="blockList">
136
<li class="blockList"><a name="constructor_summary">
137
<!--   -->
138
</a>
139
<h3>Constructor Summary</h3>
140
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
141
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
142
<tr>
143
<th class="colOne" scope="col">Constructor and Description</th>
144
</tr>
145
<tr class="altColor">
146
<td class="colOne"><code><strong><a href="../../../../../com/badlogic/gdx/utils/async/AsyncExecutor.html#AsyncExecutor(int)">AsyncExecutor</a></strong>(int&nbsp;maxConcurrent)</code>
147
<div class="block">Creates a new AsynchExecutor that allows maxConcurrent
148
 <code>Runnable</code> instances to run in parallel.</div>
149
</td>
150
</tr>
151
</table>
152
</li>
153
</ul>
154
<!-- ========== METHOD SUMMARY =========== -->
155
<ul class="blockList">
156
<li class="blockList"><a name="method_summary">
157
<!--   -->
158
</a>
159
<h3>Method Summary</h3>
160
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
161
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
162
<tr>
163
<th class="colFirst" scope="col">Modifier and Type</th>
164
<th class="colLast" scope="col">Method and Description</th>
165
</tr>
166
<tr class="altColor">
167
<td class="colFirst"><code>void</code></td>
168
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/utils/async/AsyncExecutor.html#dispose()">dispose</a></strong>()</code>
169
<div class="block">Waits for running <a href="../../../../../com/badlogic/gdx/utils/async/AsyncTask.html" title="interface in com.badlogic.gdx.utils.async"><code>AsyncTask</code></a> instances to finish,
170
 then destroys any resources like threads.</div>
171
</td>
172
</tr>
173
<tr class="rowColor">
174
<td class="colFirst"><code>&lt;T&gt;&nbsp;<a href="../../../../../com/badlogic/gdx/utils/async/AsyncResult.html" title="class in com.badlogic.gdx.utils.async">AsyncResult</a>&lt;T&gt;</code></td>
175
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/utils/async/AsyncExecutor.html#submit(com.badlogic.gdx.utils.async.AsyncTask)">submit</a></strong>(<a href="../../../../../com/badlogic/gdx/utils/async/AsyncTask.html" title="interface in com.badlogic.gdx.utils.async">AsyncTask</a>&lt;T&gt;&nbsp;task)</code>
176
<div class="block">Submits a <code>Runnable</code> to be executed asynchronously.</div>
177
</td>
178
</tr>
179
</table>
180
<ul class="blockList">
181
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
182
<!--   -->
183
</a>
184
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
185
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
186
</ul>
187
</li>
188
</ul>
189
</li>
190
</ul>
191
</div>
192
<div class="details">
193
<ul class="blockList">
194
<li class="blockList">
195
<!-- ========= CONSTRUCTOR DETAIL ======== -->
196
<ul class="blockList">
197
<li class="blockList"><a name="constructor_detail">
198
<!--   -->
199
</a>
200
<h3>Constructor Detail</h3>
201
<a name="AsyncExecutor(int)">
202
<!--   -->
203
</a>
204
<ul class="blockListLast">
205
<li class="blockList">
206
<h4>AsyncExecutor</h4>
207
<pre>public&nbsp;AsyncExecutor(int&nbsp;maxConcurrent)</pre>
208
<div class="block">Creates a new AsynchExecutor that allows maxConcurrent
209
 <code>Runnable</code> instances to run in parallel.</div>
210
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxConcurrent</code> - </dd></dl>
211
</li>
212
</ul>
213
</li>
214
</ul>
215
<!-- ============ METHOD DETAIL ========== -->
216
<ul class="blockList">
217
<li class="blockList"><a name="method_detail">
218
<!--   -->
219
</a>
220
<h3>Method Detail</h3>
221
<a name="submit(com.badlogic.gdx.utils.async.AsyncTask)">
222
<!--   -->
223
</a>
224
<ul class="blockList">
225
<li class="blockList">
226
<h4>submit</h4>
227
<pre>public&nbsp;&lt;T&gt;&nbsp;<a href="../../../../../com/badlogic/gdx/utils/async/AsyncResult.html" title="class in com.badlogic.gdx.utils.async">AsyncResult</a>&lt;T&gt;&nbsp;submit(<a href="../../../../../com/badlogic/gdx/utils/async/AsyncTask.html" title="interface in com.badlogic.gdx.utils.async">AsyncTask</a>&lt;T&gt;&nbsp;task)</pre>
228
<div class="block">Submits a <code>Runnable</code> to be executed asynchronously. If
229
 maxConcurrent runnables are already running, the runnable
230
 will be queued.</div>
231
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>task</code> - the task to execute asynchronously</dd></dl>
232
</li>
233
</ul>
234
<a name="dispose()">
235
<!--   -->
236
</a>
237
<ul class="blockListLast">
238
<li class="blockList">
239
<h4>dispose</h4>
240
<pre>public&nbsp;void&nbsp;dispose()</pre>
241
<div class="block">Waits for running <a href="../../../../../com/badlogic/gdx/utils/async/AsyncTask.html" title="interface in com.badlogic.gdx.utils.async"><code>AsyncTask</code></a> instances to finish,
242
 then destroys any resources like threads. Can not be used
243
 after this method is called.</div>
244
<dl>
245
<dt><strong>Specified by:</strong></dt>
246
<dd><code><a href="../../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</a></code></dd>
247
</dl>
248
</li>
249
</ul>
250
</li>
251
</ul>
252
</li>
253
</ul>
254
</div>
255
</div>
256
<!-- ========= END OF CLASS DATA ========= -->
257
<!-- ======= START OF BOTTOM NAVBAR ====== -->
258
<div class="bottomNav"><a name="navbar_bottom">
259
<!--   -->
260
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
261
<!--   -->
262
</a>
263
<ul class="navList" title="Navigation">
264
<li><a href="../../../../../overview-summary.html">Overview</a></li>
265
<li><a href="package-summary.html">Package</a></li>
266
<li class="navBarCell1Rev">Class</li>
267
<li><a href="class-use/AsyncExecutor.html">Use</a></li>
268
<li><a href="package-tree.html">Tree</a></li>
269
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
270
<li><a href="../../../../../index-all.html">Index</a></li>
271
<li><a href="../../../../../help-doc.html">Help</a></li>
272
</ul>
273
<div class="aboutLanguage"><em>libgdx API</em></div>
274
</div>
275
<div class="subNav">
276
<ul class="navList">
277
<li>Prev Class</li>
278
<li><a href="../../../../../com/badlogic/gdx/utils/async/AsyncResult.html" title="class in com.badlogic.gdx.utils.async"><span class="strong">Next Class</span></a></li>
279
</ul>
280
<ul class="navList">
281
<li><a href="../../../../../index.html?com/badlogic/gdx/utils/async/AsyncExecutor.html" target="_top">Frames</a></li>
282
<li><a href="AsyncExecutor.html" target="_top">No Frames</a></li>
283
</ul>
284
<ul class="navList" id="allclasses_navbar_bottom">
285
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
286
</ul>
287
<div>
288
<script type="text/javascript"><!--
289
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
290
  if(window==top) {
291
    allClassesLink.style.display = "block";
292
  }
293
  else {
294
    allClassesLink.style.display = "none";
295
  }
296
  //-->
297
</script>
298
</div>
299
<div>
300
<ul class="subNavList">
301
<li>Summary:&nbsp;</li>
302
<li>Nested&nbsp;|&nbsp;</li>
303
<li>Field&nbsp;|&nbsp;</li>
304
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
305
<li><a href="#method_summary">Method</a></li>
306
</ul>
307
<ul class="subNavList">
308
<li>Detail:&nbsp;</li>
309
<li>Field&nbsp;|&nbsp;</li>
310
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
311
<li><a href="#method_detail">Method</a></li>
312
</ul>
313
</div>
314
<a name="skip-navbar_bottom">
315
<!--   -->
316
</a></div>
317
<!-- ======== END OF BOTTOM NAVBAR ======= -->
318
<p class="legalCopy"><small>
319
                                <div style="font-size:9pt"><i>
320
                                Copyright &copy; 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
321
                                </i></div>
322
                        </small></p>
323
</body>
324
</html>