/
CountedCompleter.xml
1550 lines (1545 loc) · 99.3 KB
/
CountedCompleter.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="CountedCompleter" FullName="Java.Util.Concurrent.CountedCompleter">
<TypeSignature Language="C#" Value="public abstract class CountedCompleter : Java.Util.Concurrent.ForkJoinTask" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit CountedCompleter extends Java.Util.Concurrent.ForkJoinTask" />
<TypeSignature Language="DocId" Value="T:Java.Util.Concurrent.CountedCompleter" />
<TypeSignature Language="F#" Value="type CountedCompleter = class
 inherit ForkJoinTask" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Util.Concurrent.ForkJoinTask</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/util/concurrent/CountedCompleter", ApiSince=24, DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/util/concurrent/CountedCompleter", ApiSince=24, DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>A <c>ForkJoinTask</c> with a completion action performed when
triggered and there are no remaining pending actions.</summary>
<remarks>
<para>A <c>ForkJoinTask</c> with a completion action performed when
triggered and there are no remaining pending actions.
CountedCompleters are in general more robust in the
presence of subtask stalls and blockage than are other forms of
ForkJoinTasks, but are less intuitive to program. Uses of
CountedCompleter are similar to those of other completion based
components (such as <c>java.nio.channels.CompletionHandler</c>)
except that multiple <em>pending</em> completions may be necessary
to trigger the completion action <c>#onCompletion(CountedCompleter)</c>,
not just one.
Unless initialized otherwise, the #getPendingCount pending
count starts at zero, but may be (atomically) changed using
methods <c>#setPendingCount</c>, <c>#addToPendingCount</c>, and
<c>#compareAndSetPendingCount</c>. Upon invocation of <c>#tryComplete</c>, if the pending action count is nonzero, it is
decremented; otherwise, the completion action is performed, and if
this completer itself has a completer, the process is continued
with its completer. As is the case with related synchronization
components such as <c>Phaser</c> and <c>Semaphore</c>, these methods
affect only internal counts; they do not establish any further
internal bookkeeping. In particular, the identities of pending
tasks are not maintained. As illustrated below, you can create
subclasses that do record some or all pending tasks or their
results when needed. As illustrated below, utility methods
supporting customization of completion traversals are also
provided. However, because CountedCompleters provide only basic
synchronization mechanisms, it may be useful to create further
abstract subclasses that maintain linkages, fields, and additional
support methods appropriate for a set of related usages.</para>
<para>A concrete CountedCompleter class must define method <c>#compute</c>, that should in most cases (as illustrated below), invoke
<c>tryComplete()</c> once before returning. The class may also
optionally override method <c>#onCompletion(CountedCompleter)</c>
to perform an action upon normal completion, and method
<c>#onExceptionalCompletion(Throwable, CountedCompleter)</c> to
perform an action upon any exception.</para>
<para>CountedCompleters most often do not bear results, in which case
they are normally declared as <c>CountedCompleter<Void></c>, and
will always return <c>null</c> as a result value. In other cases,
you should override method <c>#getRawResult</c> to provide a
result from <c>join(), invoke()</c>, and related methods. In
general, this method should return the value of a field (or a
function of one or more fields) of the CountedCompleter object that
holds the result upon completion. Method <c>#setRawResult</c> by
default plays no role in CountedCompleters. It is possible, but
rarely applicable, to override this method to maintain other
objects or fields holding result data.</para>
<para>A CountedCompleter that does not itself have a completer (i.e.,
one for which <c>#getCompleter</c> returns <c>null</c>) can be
used as a regular ForkJoinTask with this added functionality.
However, any completer that in turn has another completer serves
only as an internal helper for other computations, so its own task
status (as reported in methods such as <c>ForkJoinTask#isDone</c>)
is arbitrary; this status changes only upon explicit invocations of
<c>#complete</c>, <c>ForkJoinTask#cancel</c>,
<c>ForkJoinTask#completeExceptionally(Throwable)</c> or upon
exceptional completion of method <c>compute</c>. Upon any
exceptional completion, the exception may be relayed to a task's
completer (and its completer, and so on), if one exists and it has
not otherwise already completed. Similarly, cancelling an internal
CountedCompleter has only a local effect on that completer, so is
not often useful.</para>
<para><b>Sample Usages.</b></para>
<para><b>Parallel recursive decomposition.</b> CountedCompleters may
be arranged in trees similar to those often used with <c>RecursiveAction</c>s, although the constructions involved in setting
them up typically vary. Here, the completer of each task is its
parent in the computation tree. Even though they entail a bit more
bookkeeping, CountedCompleters may be better choices when applying
a possibly time-consuming operation (that cannot be further
subdivided) to each element of an array or collection; especially
when the operation takes a significantly different amount of time
to complete for some elements than others, either because of
intrinsic variation (for example I/O) or auxiliary effects such as
garbage collection. Because CountedCompleters provide their own
continuations, other tasks need not block waiting to perform them.</para>
<para>For example, here is an initial version of a utility method that
uses divide-by-two recursive decomposition to divide work into
single pieces (leaf tasks). Even when work is split into individual
calls, tree-based techniques are usually preferable to directly
forking leaf tasks, because they reduce inter-thread communication
and improve load balancing. In the recursive case, the second of
each pair of subtasks to finish triggers completion of their parent
(because no result combination is performed, the default no-op
implementation of method <c>onCompletion</c> is not overridden).
The utility method sets up the root task and invokes it (here,
implicitly using the <c>ForkJoinPool#commonPool()</c>). It is
straightforward and reliable (but not optimal) to always set the
pending count to the number of child tasks and call <c>tryComplete()</c> immediately before returning.</para>
<code lang="text/java">{@code
public static <E> void forEach(E[] array, Consumer<E> action) {
class Task extends CountedCompleter<Void> {
final int lo, hi;
Task(Task parent, int lo, int hi) {
super(parent); this.lo = lo; this.hi = hi;
}
public void compute() {
if (hi - lo >= 2) {
int mid = (lo + hi) >>> 1;
// must set pending count before fork
setPendingCount(2);
new Task(this, mid, hi).fork(); // right child
new Task(this, lo, mid).fork(); // left child
}
else if (hi > lo)
action.accept(array[lo]);
tryComplete();
}
}
new Task(null, 0, array.length).invoke();
}}</code>
<para>This design can be improved by noticing that in the recursive case,
the task has nothing to do after forking its right task, so can
directly invoke its left task before returning. (This is an analog
of tail recursion removal.) Also, when the last action in a task
is to fork or invoke a subtask (a "tail call"), the call to <c>tryComplete()</c> can be optimized away, at the cost of making the
pending count look "off by one".</para>
<code lang="text/java">{@code
public void compute() {
if (hi - lo >= 2) {
int mid = (lo + hi) >>> 1;
setPendingCount(1); // looks off by one, but correct!
new Task(this, mid, hi).fork(); // right child
new Task(this, lo, mid).compute(); // direct invoke
} else {
if (hi > lo)
action.accept(array[lo]);
tryComplete();
}
}}</code>
<para>As a further optimization, notice that the left task need not even exist.
Instead of creating a new one, we can continue using the original task,
and add a pending count for each fork. Additionally, because no task
in this tree implements an <c>#onCompletion(CountedCompleter)</c> method,
<c>tryComplete</c> can be replaced with <c>#propagateCompletion</c>.</para>
<code lang="text/java">{@code
public void compute() {
int n = hi - lo;
for (; n >= 2; n /= 2) {
addToPendingCount(1);
new Task(this, lo + n/2, lo + n).fork();
}
if (n > 0)
action.accept(array[lo]);
propagateCompletion();
}}</code>
<para>When pending counts can be precomputed, they can be established in
the constructor:</para>
<code lang="text/java">{@code
public static <E> void forEach(E[] array, Consumer<E> action) {
class Task extends CountedCompleter<Void> {
final int lo, hi;
Task(Task parent, int lo, int hi) {
super(parent, 31 - Integer.numberOfLeadingZeros(hi - lo));
this.lo = lo; this.hi = hi;
}
public void compute() {
for (int n = hi - lo; n >= 2; n /= 2)
new Task(this, lo + n/2, lo + n).fork();
action.accept(array[lo]);
propagateCompletion();
}
}
if (array.length > 0)
new Task(null, 0, array.length).invoke();
}}</code>
<para>Additional optimizations of such classes might entail specializing
classes for leaf steps, subdividing by say, four, instead of two
per iteration, and using an adaptive threshold instead of always
subdividing down to single elements.</para>
<para><b>Searching.</b> A tree of CountedCompleters can search for a
value or property in different parts of a data structure, and
report a result in an <c>java.util.concurrent.atomic.AtomicReference AtomicReference</c> as
soon as one is found. The others can poll the result to avoid
unnecessary work. (You could additionally #cancel
cancel other tasks, but it is usually simpler and more efficient
to just let them notice that the result is set and if so skip
further processing.) Illustrating again with an array using full
partitioning (again, in practice, leaf tasks will almost always
process more than one element):</para>
<code lang="text/java">{@code
class Searcher<E> extends CountedCompleter<E> {
final E[] array; final AtomicReference<E> result; final int lo, hi;
Searcher(CountedCompleter<?> p, E[] array, AtomicReference<E> result, int lo, int hi) {
super(p);
this.array = array; this.result = result; this.lo = lo; this.hi = hi;
}
public E getRawResult() { return result.get(); }
public void compute() { // similar to ForEach version 3
int l = lo, h = hi;
while (result.get() == null && h >= l) {
if (h - l >= 2) {
int mid = (l + h) >>> 1;
addToPendingCount(1);
new Searcher(this, array, result, mid, h).fork();
h = mid;
}
else {
E x = array[l];
if (matches(x) && result.compareAndSet(null, x))
quietlyCompleteRoot(); // root task is now joinable
break;
}
}
tryComplete(); // normally complete whether or not found
}
boolean matches(E e) { ... } // return true if found
public static <E> E search(E[] array) {
return new Searcher<E>(null, array, new AtomicReference<E>(), 0, array.length).invoke();
}
}}</code>
<para>In this example, as well as others in which tasks have no other
effects except to <c>compareAndSet</c> a common result, the
trailing unconditional invocation of <c>tryComplete</c> could be
made conditional (<c>if (result.get() == null) tryComplete();</c>)
because no further bookkeeping is required to manage completions
once the root task completes.</para>
<para><b>Recording subtasks.</b> CountedCompleter tasks that combine
results of multiple subtasks usually need to access these results
in method <c>#onCompletion(CountedCompleter)</c>. As illustrated in the following
class (that performs a simplified form of map-reduce where mappings
and reductions are all of type <c>E</c>), one way to do this in
divide and conquer designs is to have each subtask record its
sibling, so that it can be accessed in method <c>onCompletion</c>.
This technique applies to reductions in which the order of
combining left and right results does not matter; ordered
reductions require explicit left/right designations. Variants of
other streamlinings seen in the above examples may also apply.</para>
<code lang="text/java">{@code
class MyMapper<E> { E apply(E v) { ... } }
class MyReducer<E> { E apply(E x, E y) { ... } }
class MapReducer<E> extends CountedCompleter<E> {
final E[] array; final MyMapper<E> mapper;
final MyReducer<E> reducer; final int lo, hi;
MapReducer<E> sibling;
E result;
MapReducer(CountedCompleter<?> p, E[] array, MyMapper<E> mapper,
MyReducer<E> reducer, int lo, int hi) {
super(p);
this.array = array; this.mapper = mapper;
this.reducer = reducer; this.lo = lo; this.hi = hi;
}
public void compute() {
if (hi - lo >= 2) {
int mid = (lo + hi) >>> 1;
MapReducer<E> left = new MapReducer(this, array, mapper, reducer, lo, mid);
MapReducer<E> right = new MapReducer(this, array, mapper, reducer, mid, hi);
left.sibling = right;
right.sibling = left;
setPendingCount(1); // only right is pending
right.fork();
left.compute(); // directly execute left
}
else {
if (hi > lo)
result = mapper.apply(array[lo]);
tryComplete();
}
}
public void onCompletion(CountedCompleter<?> caller) {
if (caller != this) {
MapReducer<E> child = (MapReducer<E>)caller;
MapReducer<E> sib = child.sibling;
if (sib == null || sib.result == null)
result = child.result;
else
result = reducer.apply(child.result, sib.result);
}
}
public E getRawResult() { return result; }
public static <E> E mapReduce(E[] array, MyMapper<E> mapper, MyReducer<E> reducer) {
return new MapReducer<E>(null, array, mapper, reducer,
0, array.length).invoke();
}
}}</code>
<para>Here, method <c>onCompletion</c> takes a form common to many
completion designs that combine results. This callback-style method
is triggered once per task, in either of the two different contexts
in which the pending count is, or becomes, zero: (1) by a task
itself, if its pending count is zero upon invocation of <c>tryComplete</c>, or (2) by any of its subtasks when they complete and
decrement the pending count to zero. The <c>caller</c> argument
distinguishes cases. Most often, when the caller is <c>this</c>,
no action is necessary. Otherwise the caller argument can be used
(usually via a cast) to supply a value (and/or links to other
values) to be combined. Assuming proper use of pending counts, the
actions inside <c>onCompletion</c> occur (once) upon completion of
a task and its subtasks. No additional synchronization is required
within this method to ensure thread safety of accesses to fields of
this task or other completed tasks.</para>
<para><b>Completion Traversals.</b> If using <c>onCompletion</c> to
process completions is inapplicable or inconvenient, you can use
methods <c>#firstComplete</c> and <c>#nextComplete</c> to create
custom traversals. For example, to define a MapReducer that only
splits out right-hand tasks in the form of the third ForEach
example, the completions must cooperatively reduce along
unexhausted subtask links, which can be done as follows:</para>
<code lang="text/java">{@code
class MapReducer<E> extends CountedCompleter<E> { // version 2
final E[] array; final MyMapper<E> mapper;
final MyReducer<E> reducer; final int lo, hi;
MapReducer<E> forks, next; // record subtask forks in list
E result;
MapReducer(CountedCompleter<?> p, E[] array, MyMapper<E> mapper,
MyReducer<E> reducer, int lo, int hi, MapReducer<E> next) {
super(p);
this.array = array; this.mapper = mapper;
this.reducer = reducer; this.lo = lo; this.hi = hi;
this.next = next;
}
public void compute() {
int l = lo, h = hi;
while (h - l >= 2) {
int mid = (l + h) >>> 1;
addToPendingCount(1);
(forks = new MapReducer(this, array, mapper, reducer, mid, h, forks)).fork();
h = mid;
}
if (h > l)
result = mapper.apply(array[l]);
// process completions by reducing along and advancing subtask links
for (CountedCompleter<?> c = firstComplete(); c != null; c = c.nextComplete()) {
for (MapReducer t = (MapReducer)c, s = t.forks; s != null; s = t.forks = s.next)
t.result = reducer.apply(t.result, s.result);
}
}
public E getRawResult() { return result; }
public static <E> E mapReduce(E[] array, MyMapper<E> mapper, MyReducer<E> reducer) {
return new MapReducer<E>(null, array, mapper, reducer,
0, array.length, null).invoke();
}
}}</code>
<para><b>Triggers.</b> Some CountedCompleters are themselves never
forked, but instead serve as bits of plumbing in other designs;
including those in which the completion of one or more async tasks
triggers another async task. For example:</para>
<code lang="text/java">{@code
class HeaderBuilder extends CountedCompleter<...> { ... }
class BodyBuilder extends CountedCompleter<...> { ... }
class PacketSender extends CountedCompleter<...> {
PacketSender(...) { super(null, 1); ... } // trigger on second completion
public void compute() { } // never called
public void onCompletion(CountedCompleter<?> caller) { sendPacket(); }
}
// sample use:
PacketSender p = new PacketSender();
new HeaderBuilder(p, ...).fork();
new BodyBuilder(p, ...).fork();}</code>
<para>Added in 1.8.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CountedCompleter ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Creates a new CountedCompleter with no completer
and an initial pending count of zero.</summary>
<remarks>
<para>Creates a new CountedCompleter with no completer
and an initial pending count of zero.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#CountedCompleter()" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.CountedCompleter()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CountedCompleter (Java.Util.Concurrent.CountedCompleter? completer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Java.Util.Concurrent.CountedCompleter completer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.#ctor(Java.Util.Concurrent.CountedCompleter)" />
<MemberSignature Language="F#" Value="new Java.Util.Concurrent.CountedCompleter : Java.Util.Concurrent.CountedCompleter -> Java.Util.Concurrent.CountedCompleter" Usage="new Java.Util.Concurrent.CountedCompleter completer" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/CountedCompleter;)V", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/CountedCompleter;)V", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="completer" Type="Java.Util.Concurrent.CountedCompleter" />
</Parameters>
<Docs>
<param name="completer">this task's completer, or <c>null</c> if none</param>
<summary>Creates a new CountedCompleter with the given completer
and an initial pending count of zero.</summary>
<remarks>
<para>Creates a new CountedCompleter with the given completer
and an initial pending count of zero.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#CountedCompleter(java.util.concurrent.CountedCompleter%3C?%3E)" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.CountedCompleter(java.util.concurrent.CountedCompleter<?>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CountedCompleter (Java.Util.Concurrent.CountedCompleter? completer, int initialPendingCount);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Java.Util.Concurrent.CountedCompleter completer, int32 initialPendingCount) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.#ctor(Java.Util.Concurrent.CountedCompleter,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Util.Concurrent.CountedCompleter : Java.Util.Concurrent.CountedCompleter * int -> Java.Util.Concurrent.CountedCompleter" Usage="new Java.Util.Concurrent.CountedCompleter (completer, initialPendingCount)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/CountedCompleter;I)V", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/CountedCompleter;I)V", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="completer" Type="Java.Util.Concurrent.CountedCompleter" />
<Parameter Name="initialPendingCount" Type="System.Int32" />
</Parameters>
<Docs>
<param name="completer">this task's completer, or <c>null</c> if none</param>
<param name="initialPendingCount">the initial pending count</param>
<summary>Creates a new CountedCompleter with the given completer
and initial pending count.</summary>
<remarks>
<para>Creates a new CountedCompleter with the given completer
and initial pending count.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#CountedCompleter(java.util.concurrent.CountedCompleter%3C?%3E,%20int)" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.CountedCompleter(java.util.concurrent.CountedCompleter<?>, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CountedCompleter (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.Util.Concurrent.CountedCompleter : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.CountedCompleter" Usage="new Java.Util.Concurrent.CountedCompleter (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">To be added.</param>
<param name="transfer">To be added.</param>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AddToPendingCount">
<MemberSignature Language="C#" Value="public void AddToPendingCount (int delta);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddToPendingCount(int32 delta) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.AddToPendingCount(System.Int32)" />
<MemberSignature Language="F#" Value="member this.AddToPendingCount : int -> unit" Usage="countedCompleter.AddToPendingCount delta" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("addToPendingCount", "(I)V", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("addToPendingCount", "(I)V", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="delta" Type="System.Int32" />
</Parameters>
<Docs>
<param name="delta">the value to add</param>
<summary>Adds (atomically) the given value to the pending count.</summary>
<remarks>
<para>Adds (atomically) the given value to the pending count.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#addToPendingCount(int)" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.addToPendingCount(int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CompareAndSetPendingCount">
<MemberSignature Language="C#" Value="public bool CompareAndSetPendingCount (int expected, int count);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool CompareAndSetPendingCount(int32 expected, int32 count) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.CompareAndSetPendingCount(System.Int32,System.Int32)" />
<MemberSignature Language="F#" Value="member this.CompareAndSetPendingCount : int * int -> bool" Usage="countedCompleter.CompareAndSetPendingCount (expected, count)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("compareAndSetPendingCount", "(II)Z", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("compareAndSetPendingCount", "(II)Z", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="expected" Type="System.Int32" />
<Parameter Name="count" Type="System.Int32" />
</Parameters>
<Docs>
<param name="expected">the expected value</param>
<param name="count">the new value</param>
<summary>Sets (atomically) the pending count to the given count only if
it currently holds the given expected value.</summary>
<returns>
<c>true</c> if successful</returns>
<remarks>
<para>Sets (atomically) the pending count to the given count only if
it currently holds the given expected value.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#compareAndSetPendingCount(int,%20int)" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.compareAndSetPendingCount(int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Complete">
<MemberSignature Language="C#" Value="public override void Complete (Java.Lang.Object? rawResult);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void Complete(class Java.Lang.Object rawResult) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.Complete(Java.Lang.Object)" />
<MemberSignature Language="F#" Value="override this.Complete : Java.Lang.Object -> unit" Usage="countedCompleter.Complete rawResult" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("complete", "(Ljava/lang/Object;)V", "GetComplete_Ljava_lang_Object_Handler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("complete", "(Ljava/lang/Object;)V", "GetComplete_Ljava_lang_Object_Handler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="rawResult" Type="Java.Lang.Object" />
</Parameters>
<Docs>
<param name="rawResult">the raw result</param>
<summary>Regardless of pending count, invokes
<c>#onCompletion(CountedCompleter)</c>, marks this task as
complete and further triggers <c>#tryComplete</c> on this
task's completer, if one exists.</summary>
<remarks>
<para>Regardless of pending count, invokes
<c>#onCompletion(CountedCompleter)</c>, marks this task as
complete and further triggers <c>#tryComplete</c> on this
task's completer, if one exists. The given rawResult is
used as an argument to <c>#setRawResult</c> before invoking
<c>#onCompletion(CountedCompleter)</c> or marking this task
as complete; its value is meaningful only for classes
overriding <c>setRawResult</c>. This method does not modify
the pending count.</para>
<para>This method may be useful when forcing completion as soon as
any one (versus all) of several subtask results are obtained.
However, in the common (and recommended) case in which <c>setRawResult</c> is not overridden, this effect can be obtained
more simply using <c>#quietlyCompleteRoot()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#complete(T)" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.complete(T)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Completer">
<MemberSignature Language="C#" Value="public Java.Util.Concurrent.CountedCompleter? Completer { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Util.Concurrent.CountedCompleter Completer" />
<MemberSignature Language="DocId" Value="P:Java.Util.Concurrent.CountedCompleter.Completer" />
<MemberSignature Language="F#" Value="member this.Completer : Java.Util.Concurrent.CountedCompleter" Usage="Java.Util.Concurrent.CountedCompleter.Completer" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCompleter", "()Ljava/util/concurrent/CountedCompleter;", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCompleter", "()Ljava/util/concurrent/CountedCompleter;", "", ApiSince=24)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.CountedCompleter</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the completer established in this task's constructor,
or <c>null</c> if none.</summary>
<value>the completer</value>
<remarks>
<para>Returns the completer established in this task's constructor,
or <c>null</c> if none.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#getCompleter()" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.getCompleter()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Compute">
<MemberSignature Language="C#" Value="public abstract void Compute ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Compute() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.Compute" />
<MemberSignature Language="F#" Value="abstract member Compute : unit -> unit" Usage="countedCompleter.Compute " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("compute", "()V", "GetComputeHandler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("compute", "()V", "GetComputeHandler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>The main computation performed by this task.</summary>
<remarks>
<para>The main computation performed by this task.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#compute()" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.compute()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DecrementPendingCountUnlessZero">
<MemberSignature Language="C#" Value="public int DecrementPendingCountUnlessZero ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance int32 DecrementPendingCountUnlessZero() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.DecrementPendingCountUnlessZero" />
<MemberSignature Language="F#" Value="member this.DecrementPendingCountUnlessZero : unit -> int" Usage="countedCompleter.DecrementPendingCountUnlessZero " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("decrementPendingCountUnlessZero", "()I", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("decrementPendingCountUnlessZero", "()I", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>If the pending count is nonzero, (atomically) decrements it.</summary>
<returns>the initial (undecremented) pending count holding on entry
to this method</returns>
<remarks>
<para>If the pending count is nonzero, (atomically) decrements it.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#decrementPendingCountUnlessZero()" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.decrementPendingCountUnlessZero()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Exec">
<MemberSignature Language="C#" Value="protected override sealed bool Exec ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance bool Exec() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.Exec" />
<MemberSignature Language="F#" Value="override this.Exec : unit -> bool" Usage="countedCompleter.Exec " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("exec", "()Z", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("exec", "()Z", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Implements execution conventions for CountedCompleters.</summary>
<returns>To be added.</returns>
<remarks>
<para>Implements execution conventions for CountedCompleters.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#exec()" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.exec()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="FirstComplete">
<MemberSignature Language="C#" Value="public Java.Util.Concurrent.CountedCompleter? FirstComplete ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Util.Concurrent.CountedCompleter FirstComplete() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.FirstComplete" />
<MemberSignature Language="F#" Value="member this.FirstComplete : unit -> Java.Util.Concurrent.CountedCompleter" Usage="countedCompleter.FirstComplete " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("firstComplete", "()Ljava/util/concurrent/CountedCompleter;", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("firstComplete", "()Ljava/util/concurrent/CountedCompleter;", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Util.Concurrent.CountedCompleter</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>If this task's pending count is zero, returns this task;
otherwise decrements its pending count and returns <c>null</c>.</summary>
<returns>this task, if pending count was zero, else <c>null</c></returns>
<remarks>
<para>If this task's pending count is zero, returns this task;
otherwise decrements its pending count and returns <c>null</c>.
This method is designed to be used with <c>#nextComplete</c> in
completion traversal loops.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#firstComplete()" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.firstComplete()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="HelpComplete">
<MemberSignature Language="C#" Value="public void HelpComplete (int maxTasks);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void HelpComplete(int32 maxTasks) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.HelpComplete(System.Int32)" />
<MemberSignature Language="F#" Value="member this.HelpComplete : int -> unit" Usage="countedCompleter.HelpComplete maxTasks" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("helpComplete", "(I)V", "", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("helpComplete", "(I)V", "", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="maxTasks" Type="System.Int32" />
</Parameters>
<Docs>
<param name="maxTasks">the maximum number of tasks to process. If
less than or equal to zero, then no tasks are
processed.</param>
<summary>If this task has not completed, attempts to process at most the
given number of other unprocessed tasks for which this task is
on the completion path, if any are known to exist.</summary>
<remarks>
<para>If this task has not completed, attempts to process at most the
given number of other unprocessed tasks for which this task is
on the completion path, if any are known to exist.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/util/concurrent/CountedCompleter#helpComplete(int)" title="Reference documentation">Java documentation for <code>java.util.concurrent.CountedCompleter.helpComplete(int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Java.Util.Concurrent.CountedCompleter.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Java.Util.Concurrent.CountedCompleter.JniPeerMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="NextComplete">
<MemberSignature Language="C#" Value="public Java.Util.Concurrent.CountedCompleter? NextComplete ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class Java.Util.Concurrent.CountedCompleter NextComplete() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Util.Concurrent.CountedCompleter.NextComplete" />
<MemberSignature Language="F#" Value="member this.NextComplete : unit -> Java.Util.Concurrent.CountedCompleter" Usage="countedCompleter.NextComplete " />
<MemberType>Method</MemberType>
<AssemblyInfo>