RingJavafor Ring

java.util.concurrent

81 classes of the module java.base.

Load them with:

using {
	"java.util.concurrent"
}

All packages

AbstractExecutorService ArrayBlockingQueue BlockingDeque BlockingQueue BrokenBarrierException Callable CancellationException CompletableFuture CompletableFutureAsynchronousCompletionTask CompletionException CompletionService CompletionStage ConcurrentHashMap ConcurrentHashMapKeySetView ConcurrentLinkedDeque ConcurrentLinkedQueue ConcurrentMap ConcurrentNavigableMap ConcurrentSkipListMap ConcurrentSkipListSet CopyOnWriteArrayList CopyOnWriteArraySet CountDownLatch CountedCompleter CyclicBarrier Delayed DelayQueue Exchanger ExecutionException Executor ExecutorCompletionService Executors ExecutorService Flow FlowProcessor FlowPublisher FlowSubscriber FlowSubscription ForkJoinPool ForkJoinPoolForkJoinWorkerThreadFactory ForkJoinPoolManagedBlocker ForkJoinTask ForkJoinWorkerThread Future FutureState FutureTask LinkedBlockingDeque LinkedBlockingQueue LinkedTransferQueue Phaser PriorityBlockingQueue RecursiveAction RecursiveTask RejectedExecutionException RejectedExecutionHandler RunnableFuture RunnableScheduledFuture ScheduledExecutorService ScheduledFuture ScheduledThreadPoolExecutor Semaphore StructuredTaskScope StructuredTaskScopeConfiguration StructuredTaskScopeFailedException StructuredTaskScopeJoiner StructuredTaskScopeSubtask StructuredTaskScopeSubtaskState StructuredTaskScopeTimeoutException StructureViolationException SubmissionPublisher SynchronousQueue ThreadFactory ThreadLocalRandom ThreadPoolExecutor ThreadPoolExecutorAbortPolicy ThreadPoolExecutorCallerRunsPolicy ThreadPoolExecutorDiscardOldestPolicy ThreadPoolExecutorDiscardPolicy TimeoutException TimeUnit TransferQueue

AbstractExecutorService#

abstract · extends Object · java.util.concurrent.AbstractExecutorService

Implements: ExecutorService

Methods

MethodRing callJava overloads
awaitTerminationawaitTermination(timeout,unit)boolean awaitTermination(long timeout, TimeUnit unit)
closeclose()void close()
executeexecute(command)void execute(Runnable command)
invokeAllinvokeAll(tasks)
invokeAll([tasks,timeout,unit])
invokeAll([ :tasks = v, :timeout = v, :unit = v ])
List invokeAll(Collection tasks)
List invokeAll(Collection tasks, long timeout, TimeUnit unit)
invokeAnyinvokeAny(tasks)
invokeAny([tasks,timeout,unit])
invokeAny([ :tasks = v, :timeout = v, :unit = v ])
Object invokeAny(Collection tasks)
Object invokeAny(Collection tasks, long timeout, TimeUnit unit)
isShutdownisShutdown()boolean isShutdown()
isTerminatedisTerminated()boolean isTerminated()
shutdownshutdown()void shutdown()
shutdownNowshutdownNow()List shutdownNow()
submitsubmit(task)
submit([task,result])
submit([ :task = v, :result = v ])
Future submit(Callable task)
Future submit(Runnable task)
Future submit(Runnable task, Object result)

The methods and fields of Object are inherited.

ArrayBlockingQueue#

class · extends AbstractQueue · java.util.concurrent.ArrayBlockingQueue

Implements: BlockingQueue, Serializable

Constructors

new ArrayBlockingQueue(int capacity)
new ArrayBlockingQueue(int capacity, boolean fair)
new ArrayBlockingQueue(int capacity, boolean fair, Collection c)

Ring: new ArrayBlockingQueue(args) uses the constructor with the fewest parameters (at least one); new ArrayBlockingQueue makes the object with the constructor without parameters; the others: (new ArrayBlockingQueue).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
remainingCapacityremainingCapacity()int remainingCapacity()
taketake()Object take()

The methods and fields of AbstractQueue are inherited.

BlockingDeque#

interface · java.util.concurrent.BlockingDeque

Extends: BlockingQueue, Deque

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@pollFirst@pollFirst([timeout,unit])
@pollFirst([ :timeout = v, :unit = v ])
Object pollFirst(long timeout, TimeUnit unit)
@pollLast@pollLast([timeout,unit])
@pollLast([ :timeout = v, :unit = v ])
Object pollLast(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
@remove@remove(o)boolean remove(Object o)
@toArray@toArray(a)Object[] toArray(Object[] a)
Object[] toArray(IntFunction generator)
addadd(e)boolean add(Object e)
addAlladdAll(c)boolean addAll(Collection c)
addFirstaddFirst(e)void addFirst(Object e)
addLastaddLast(e)void addLast(Object e)
clearclear()void clear()
containscontains(o)boolean contains(Object o)
containsAllcontainsAll(c)boolean containsAll(Collection c)
descendingIteratordescendingIterator()Iterator descendingIterator()
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
elementelement()Object element()
equalsequals(o)boolean equals(Object o)
getFirstgetFirst()Object getFirst()
getLastgetLast()Object getLast()
hashCodehashCode()int hashCode()
isEmptyisEmpty()boolean isEmpty()
iteratoriterator()Iterator iterator()
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
offerFirstofferFirst(e)
offerFirst([e,timeout,unit])
offerFirst([ :e = v, :timeout = v, :unit = v ])
boolean offerFirst(Object e)
boolean offerFirst(Object e, long timeout, TimeUnit unit)
offerLastofferLast(e)
offerLast([e,timeout,unit])
offerLast([ :e = v, :timeout = v, :unit = v ])
boolean offerLast(Object e)
boolean offerLast(Object e, long timeout, TimeUnit unit)
parallelStreamparallelStream()Stream parallelStream()
peekpeek()Object peek()
peekFirstpeekFirst()Object peekFirst()
peekLastpeekLast()Object peekLast()
pollpoll()Object poll()
pollFirstpollFirst()Object pollFirst()
pollLastpollLast()Object pollLast()
poppop()Object pop()
pushpush(e)void push(Object e)
putFirstputFirst(e)void putFirst(Object e)
putLastputLast(e)void putLast(Object e)
remainingCapacityremainingCapacity()int remainingCapacity()
removeremove()Object remove()
removeAllremoveAll(c)boolean removeAll(Collection c)
removeFirstremoveFirst()Object removeFirst()
removeFirstOccurrenceremoveFirstOccurrence(o)boolean removeFirstOccurrence(Object o)
removeIfremoveIf(filter)boolean removeIf(Predicate filter)
removeLastremoveLast()Object removeLast()
removeLastOccurrenceremoveLastOccurrence(o)boolean removeLastOccurrence(Object o)
retainAllretainAll(c)boolean retainAll(Collection c)
reversedreversed()Deque reversed()
sizesize()int size()
spliteratorspliterator()Spliterator spliterator()
streamstream()Stream stream()
taketake()Object take()
takeFirsttakeFirst()Object takeFirst()
takeLasttakeLast()Object takeLast()
toArraytoArray()Object[] toArray()

BlockingQueue#

interface · java.util.concurrent.BlockingQueue

Extends: Queue

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
@remove@remove(o)boolean remove(Object o)
@toArray@toArray(a)Object[] toArray(Object[] a)
Object[] toArray(IntFunction generator)
addadd(e)boolean add(Object e)
addAlladdAll(c)boolean addAll(Collection c)
clearclear()void clear()
containscontains(o)boolean contains(Object o)
containsAllcontainsAll(c)boolean containsAll(Collection c)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
elementelement()Object element()
equalsequals(o)boolean equals(Object o)
hashCodehashCode()int hashCode()
isEmptyisEmpty()boolean isEmpty()
iteratoriterator()Iterator iterator()
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
parallelStreamparallelStream()Stream parallelStream()
peekpeek()Object peek()
pollpoll()Object poll()
remainingCapacityremainingCapacity()int remainingCapacity()
removeremove()Object remove()
removeAllremoveAll(c)boolean removeAll(Collection c)
removeIfremoveIf(filter)boolean removeIf(Predicate filter)
retainAllretainAll(c)boolean retainAll(Collection c)
sizesize()int size()
spliteratorspliterator()Spliterator spliterator()
streamstream()Stream stream()
taketake()Object take()
toArraytoArray()Object[] toArray()

BrokenBarrierException#

class · extends Exception · java.util.concurrent.BrokenBarrierException

Constructors

new BrokenBarrierException()
new BrokenBarrierException(String message)

Ring: new BrokenBarrierException(args) uses the constructor with the fewest parameters (at least one); new BrokenBarrierException makes the object with the constructor without parameters; the others: (new BrokenBarrierException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

Callable#

interface · java.util.concurrent.Callable

Methods

MethodRing callJava overloads
@call@call()Object call()

CancellationException#

class · extends IllegalStateException · java.util.concurrent.CancellationException

Constructors

new CancellationException()
new CancellationException(String message)

Ring: new CancellationException(args) uses the constructor with the fewest parameters (at least one); new CancellationException makes the object with the constructor without parameters; the others: (new CancellationException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IllegalStateException are inherited.

CompletableFuture#

class · extends Object · java.util.concurrent.CompletableFuture

Implements: Future, CompletionStage

Constructors

new CompletableFuture()

Ring: new CompletableFuture(args) uses the constructor with the fewest parameters (at least one); new CompletableFuture makes the object with the constructor without parameters; the others: (new CompletableFuture).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
acceptEitheracceptEither(other,action)CompletableFuture acceptEither(CompletionStage other, Consumer action)
acceptEitherAsyncacceptEitherAsync([other,action])
acceptEitherAsync([ :other = v, :action = v ])
acceptEitherAsync([other,action,executor])
acceptEitherAsync([ :other = v, :action = v, :executor = v ])
CompletableFuture acceptEitherAsync(CompletionStage other, Consumer action)
CompletableFuture acceptEitherAsync(CompletionStage other, Consumer action, Executor executor)
allOfallOf(cfs)static CompletableFuture allOf(CompletableFuture[] cfs)
anyOfanyOf(cfs)static CompletableFuture anyOf(CompletableFuture[] cfs)
applyToEitherapplyToEither(other,fn)CompletableFuture applyToEither(CompletionStage other, Function fn)
applyToEitherAsyncapplyToEitherAsync([other,fn])
applyToEitherAsync([ :other = v, :fn = v ])
applyToEitherAsync([other,fn,executor])
applyToEitherAsync([ :other = v, :fn = v, :executor = v ])
CompletableFuture applyToEitherAsync(CompletionStage other, Function fn)
CompletableFuture applyToEitherAsync(CompletionStage other, Function fn, Executor executor)
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
completecomplete(value)boolean complete(Object value)
completeAsynccompleteAsync(supplier)
completeAsync([supplier,executor])
completeAsync([ :supplier = v, :executor = v ])
CompletableFuture completeAsync(Supplier supplier)
CompletableFuture completeAsync(Supplier supplier, Executor executor)
completedFuturecompletedFuture(value)static CompletableFuture completedFuture(Object value)
completedStagecompletedStage(value)static CompletionStage completedStage(Object value)
completeExceptionallycompleteExceptionally(ex)boolean completeExceptionally(Throwable ex)
completeOnTimeoutcompleteOnTimeout(value,timeout,unit)CompletableFuture completeOnTimeout(Object value, long timeout, TimeUnit unit)
copycopy()CompletableFuture copy()
defaultExecutordefaultExecutor()Executor defaultExecutor()
delayedExecutordelayedExecutor([delay,unit])
delayedExecutor([ :delay = v, :unit = v ])
delayedExecutor([delay,unit,executor])
delayedExecutor([ :delay = v, :unit = v, :executor = v ])
static Executor delayedExecutor(long delay, TimeUnit unit)
static Executor delayedExecutor(long delay, TimeUnit unit, Executor executor)
exceptionallyexceptionally(fn)CompletableFuture exceptionally(Function fn)
exceptionallyAsyncexceptionallyAsync(fn)
exceptionallyAsync([fn,executor])
exceptionallyAsync([ :fn = v, :executor = v ])
CompletableFuture exceptionallyAsync(Function fn)
CompletableFuture exceptionallyAsync(Function fn, Executor executor)
exceptionallyComposeexceptionallyCompose(fn)CompletableFuture exceptionallyCompose(Function fn)
exceptionallyComposeAsyncexceptionallyComposeAsync(fn)
exceptionallyComposeAsync([fn,executor])
exceptionallyComposeAsync([ :fn = v, :executor = v ])
CompletableFuture exceptionallyComposeAsync(Function fn)
CompletableFuture exceptionallyComposeAsync(Function fn, Executor executor)
exceptionNowexceptionNow()Throwable exceptionNow()
failedFuturefailedFuture(ex)static CompletableFuture failedFuture(Throwable ex)
failedStagefailedStage(ex)static CompletionStage failedStage(Throwable ex)
getNowgetNow(valueIfAbsent)Object getNow(Object valueIfAbsent)
getNumberOfDependentsgetNumberOfDependents()int getNumberOfDependents()
handlehandle(fn)CompletableFuture handle(BiFunction fn)
handleAsynchandleAsync(fn)
handleAsync([fn,executor])
handleAsync([ :fn = v, :executor = v ])
CompletableFuture handleAsync(BiFunction fn)
CompletableFuture handleAsync(BiFunction fn, Executor executor)
isCancelledisCancelled()boolean isCancelled()
isCompletedExceptionallyisCompletedExceptionally()boolean isCompletedExceptionally()
isDoneisDone()boolean isDone()
joinjoin()Object join()
minimalCompletionStageminimalCompletionStage()CompletionStage minimalCompletionStage()
newIncompleteFuturenewIncompleteFuture()CompletableFuture newIncompleteFuture()
obtrudeExceptionobtrudeException(ex)void obtrudeException(Throwable ex)
obtrudeValueobtrudeValue(value)void obtrudeValue(Object value)
orTimeoutorTimeout(timeout,unit)CompletableFuture orTimeout(long timeout, TimeUnit unit)
resultNowresultNow()Object resultNow()
runAfterBothrunAfterBoth(other,action)CompletableFuture runAfterBoth(CompletionStage other, Runnable action)
runAfterBothAsyncrunAfterBothAsync([other,action])
runAfterBothAsync([ :other = v, :action = v ])
runAfterBothAsync([other,action,executor])
runAfterBothAsync([ :other = v, :action = v, :executor = v ])
CompletableFuture runAfterBothAsync(CompletionStage other, Runnable action)
CompletableFuture runAfterBothAsync(CompletionStage other, Runnable action, Executor executor)
runAfterEitherrunAfterEither(other,action)CompletableFuture runAfterEither(CompletionStage other, Runnable action)
runAfterEitherAsyncrunAfterEitherAsync([other,action])
runAfterEitherAsync([ :other = v, :action = v ])
runAfterEitherAsync([other,action,executor])
runAfterEitherAsync([ :other = v, :action = v, :executor = v ])
CompletableFuture runAfterEitherAsync(CompletionStage other, Runnable action)
CompletableFuture runAfterEitherAsync(CompletionStage other, Runnable action, Executor executor)
runAsyncrunAsync(runnable)
runAsync([runnable,executor])
runAsync([ :runnable = v, :executor = v ])
static CompletableFuture runAsync(Runnable runnable)
static CompletableFuture runAsync(Runnable runnable, Executor executor)
statestate()State state()
supplyAsyncsupplyAsync(supplier)
supplyAsync([supplier,executor])
supplyAsync([ :supplier = v, :executor = v ])
static CompletableFuture supplyAsync(Supplier supplier)
static CompletableFuture supplyAsync(Supplier supplier, Executor executor)
thenAcceptthenAccept(action)CompletableFuture thenAccept(Consumer action)
thenAcceptAsyncthenAcceptAsync(action)
thenAcceptAsync([action,executor])
thenAcceptAsync([ :action = v, :executor = v ])
CompletableFuture thenAcceptAsync(Consumer action)
CompletableFuture thenAcceptAsync(Consumer action, Executor executor)
thenAcceptBoththenAcceptBoth(other,action)CompletableFuture thenAcceptBoth(CompletionStage other, BiConsumer action)
thenAcceptBothAsyncthenAcceptBothAsync([other,action])
thenAcceptBothAsync([ :other = v, :action = v ])
thenAcceptBothAsync([other,action,executor])
thenAcceptBothAsync([ :other = v, :action = v, :executor = v ])
CompletableFuture thenAcceptBothAsync(CompletionStage other, BiConsumer action)
CompletableFuture thenAcceptBothAsync(CompletionStage other, BiConsumer action, Executor executor)
thenApplythenApply(fn)CompletableFuture thenApply(Function fn)
thenApplyAsyncthenApplyAsync(fn)
thenApplyAsync([fn,executor])
thenApplyAsync([ :fn = v, :executor = v ])
CompletableFuture thenApplyAsync(Function fn)
CompletableFuture thenApplyAsync(Function fn, Executor executor)
thenCombinethenCombine(other,fn)CompletableFuture thenCombine(CompletionStage other, BiFunction fn)
thenCombineAsyncthenCombineAsync([other,fn])
thenCombineAsync([ :other = v, :fn = v ])
thenCombineAsync([other,fn,executor])
thenCombineAsync([ :other = v, :fn = v, :executor = v ])
CompletableFuture thenCombineAsync(CompletionStage other, BiFunction fn)
CompletableFuture thenCombineAsync(CompletionStage other, BiFunction fn, Executor executor)
thenComposethenCompose(fn)CompletableFuture thenCompose(Function fn)
thenComposeAsyncthenComposeAsync(fn)
thenComposeAsync([fn,executor])
thenComposeAsync([ :fn = v, :executor = v ])
CompletableFuture thenComposeAsync(Function fn)
CompletableFuture thenComposeAsync(Function fn, Executor executor)
thenRunthenRun(action)CompletableFuture thenRun(Runnable action)
thenRunAsyncthenRunAsync(action)
thenRunAsync([action,executor])
thenRunAsync([ :action = v, :executor = v ])
CompletableFuture thenRunAsync(Runnable action)
CompletableFuture thenRunAsync(Runnable action, Executor executor)
toCompletableFuturetoCompletableFuture()CompletableFuture toCompletableFuture()
whenCompletewhenComplete(action)CompletableFuture whenComplete(BiConsumer action)
whenCompleteAsyncwhenCompleteAsync(action)
whenCompleteAsync([action,executor])
whenCompleteAsync([ :action = v, :executor = v ])
CompletableFuture whenCompleteAsync(BiConsumer action)
CompletableFuture whenCompleteAsync(BiConsumer action, Executor executor)

The methods and fields of Object are inherited.

CompletableFutureAsynchronousCompletionTask#

interface · java.util.concurrent.CompletableFuture$AsynchronousCompletionTask

CompletionException#

class · extends RuntimeException · java.util.concurrent.CompletionException

Constructors

new CompletionException(Throwable cause)
new CompletionException(String message, Throwable cause)

Ring: new CompletionException(args) uses the constructor with the fewest parameters (at least one); new CompletionException makes the object with the constructor without parameters; the others: (new CompletionException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of RuntimeException are inherited.

CompletionService#

interface · java.util.concurrent.CompletionService

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Future poll(long timeout, TimeUnit unit)
pollpoll()Future poll()
submitsubmit(task)
submit([task,result])
submit([ :task = v, :result = v ])
Future submit(Callable task)
Future submit(Runnable task, Object result)
taketake()Future take()

CompletionStage#

interface · java.util.concurrent.CompletionStage

Methods

MethodRing callJava overloads
acceptEitheracceptEither(other,action)CompletionStage acceptEither(CompletionStage other, Consumer action)
acceptEitherAsyncacceptEitherAsync([other,action])
acceptEitherAsync([ :other = v, :action = v ])
acceptEitherAsync([other,action,executor])
acceptEitherAsync([ :other = v, :action = v, :executor = v ])
CompletionStage acceptEitherAsync(CompletionStage other, Consumer action)
CompletionStage acceptEitherAsync(CompletionStage other, Consumer action, Executor executor)
applyToEitherapplyToEither(other,fn)CompletionStage applyToEither(CompletionStage other, Function fn)
applyToEitherAsyncapplyToEitherAsync([other,fn])
applyToEitherAsync([ :other = v, :fn = v ])
applyToEitherAsync([other,fn,executor])
applyToEitherAsync([ :other = v, :fn = v, :executor = v ])
CompletionStage applyToEitherAsync(CompletionStage other, Function fn)
CompletionStage applyToEitherAsync(CompletionStage other, Function fn, Executor executor)
exceptionallyexceptionally(fn)CompletionStage exceptionally(Function fn)
exceptionallyAsyncexceptionallyAsync(fn)
exceptionallyAsync([fn,executor])
exceptionallyAsync([ :fn = v, :executor = v ])
CompletionStage exceptionallyAsync(Function fn)
CompletionStage exceptionallyAsync(Function fn, Executor executor)
exceptionallyComposeexceptionallyCompose(fn)CompletionStage exceptionallyCompose(Function fn)
exceptionallyComposeAsyncexceptionallyComposeAsync(fn)
exceptionallyComposeAsync([fn,executor])
exceptionallyComposeAsync([ :fn = v, :executor = v ])
CompletionStage exceptionallyComposeAsync(Function fn)
CompletionStage exceptionallyComposeAsync(Function fn, Executor executor)
handlehandle(fn)CompletionStage handle(BiFunction fn)
handleAsynchandleAsync(fn)
handleAsync([fn,executor])
handleAsync([ :fn = v, :executor = v ])
CompletionStage handleAsync(BiFunction fn)
CompletionStage handleAsync(BiFunction fn, Executor executor)
runAfterBothrunAfterBoth(other,action)CompletionStage runAfterBoth(CompletionStage other, Runnable action)
runAfterBothAsyncrunAfterBothAsync([other,action])
runAfterBothAsync([ :other = v, :action = v ])
runAfterBothAsync([other,action,executor])
runAfterBothAsync([ :other = v, :action = v, :executor = v ])
CompletionStage runAfterBothAsync(CompletionStage other, Runnable action)
CompletionStage runAfterBothAsync(CompletionStage other, Runnable action, Executor executor)
runAfterEitherrunAfterEither(other,action)CompletionStage runAfterEither(CompletionStage other, Runnable action)
runAfterEitherAsyncrunAfterEitherAsync([other,action])
runAfterEitherAsync([ :other = v, :action = v ])
runAfterEitherAsync([other,action,executor])
runAfterEitherAsync([ :other = v, :action = v, :executor = v ])
CompletionStage runAfterEitherAsync(CompletionStage other, Runnable action)
CompletionStage runAfterEitherAsync(CompletionStage other, Runnable action, Executor executor)
thenAcceptthenAccept(action)CompletionStage thenAccept(Consumer action)
thenAcceptAsyncthenAcceptAsync(action)
thenAcceptAsync([action,executor])
thenAcceptAsync([ :action = v, :executor = v ])
CompletionStage thenAcceptAsync(Consumer action)
CompletionStage thenAcceptAsync(Consumer action, Executor executor)
thenAcceptBoththenAcceptBoth(other,action)CompletionStage thenAcceptBoth(CompletionStage other, BiConsumer action)
thenAcceptBothAsyncthenAcceptBothAsync([other,action])
thenAcceptBothAsync([ :other = v, :action = v ])
thenAcceptBothAsync([other,action,executor])
thenAcceptBothAsync([ :other = v, :action = v, :executor = v ])
CompletionStage thenAcceptBothAsync(CompletionStage other, BiConsumer action)
CompletionStage thenAcceptBothAsync(CompletionStage other, BiConsumer action, Executor executor)
thenApplythenApply(fn)CompletionStage thenApply(Function fn)
thenApplyAsyncthenApplyAsync(fn)
thenApplyAsync([fn,executor])
thenApplyAsync([ :fn = v, :executor = v ])
CompletionStage thenApplyAsync(Function fn)
CompletionStage thenApplyAsync(Function fn, Executor executor)
thenCombinethenCombine(other,fn)CompletionStage thenCombine(CompletionStage other, BiFunction fn)
thenCombineAsyncthenCombineAsync([other,fn])
thenCombineAsync([ :other = v, :fn = v ])
thenCombineAsync([other,fn,executor])
thenCombineAsync([ :other = v, :fn = v, :executor = v ])
CompletionStage thenCombineAsync(CompletionStage other, BiFunction fn)
CompletionStage thenCombineAsync(CompletionStage other, BiFunction fn, Executor executor)
thenComposethenCompose(fn)CompletionStage thenCompose(Function fn)
thenComposeAsyncthenComposeAsync(fn)
thenComposeAsync([fn,executor])
thenComposeAsync([ :fn = v, :executor = v ])
CompletionStage thenComposeAsync(Function fn)
CompletionStage thenComposeAsync(Function fn, Executor executor)
thenRunthenRun(action)CompletionStage thenRun(Runnable action)
thenRunAsyncthenRunAsync(action)
thenRunAsync([action,executor])
thenRunAsync([ :action = v, :executor = v ])
CompletionStage thenRunAsync(Runnable action)
CompletionStage thenRunAsync(Runnable action, Executor executor)
toCompletableFuturetoCompletableFuture()CompletableFuture toCompletableFuture()
whenCompletewhenComplete(action)CompletionStage whenComplete(BiConsumer action)
whenCompleteAsyncwhenCompleteAsync(action)
whenCompleteAsync([action,executor])
whenCompleteAsync([ :action = v, :executor = v ])
CompletionStage whenCompleteAsync(BiConsumer action)
CompletionStage whenCompleteAsync(BiConsumer action, Executor executor)

ConcurrentHashMap#

class · extends AbstractMap · java.util.concurrent.ConcurrentHashMap

Implements: ConcurrentMap, Serializable

Constructors

new ConcurrentHashMap()
new ConcurrentHashMap(int initialCapacity)
new ConcurrentHashMap(Map m)
new ConcurrentHashMap(int initialCapacity, float loadFactor)
new ConcurrentHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)

Ring: new ConcurrentHashMap(args) uses the constructor with the fewest parameters (at least one); new ConcurrentHashMap makes the object with the constructor without parameters; the others: (new ConcurrentHashMap).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@forEach@forEach(action)
@forEach([parallelismThreshold,action])
@forEach([ :parallelismThreshold = v, :action = v ])
@forEach([parallelismThreshold,transformer,action])
@forEach([ :parallelismThreshold = v, :transformer = v, :action = v ])
void forEach(BiConsumer action)
void forEach(long parallelismThreshold, BiConsumer action)
void forEach(long parallelismThreshold, BiFunction transformer, Consumer action)
@keySet@keySet(mappedValue)KeySetView keySet(Object mappedValue)
@newKeySet@newKeySet(initialCapacity)static KeySetView newKeySet(int initialCapacity)
containscontains(value)boolean contains(Object value)
elementselements()Enumeration elements()
forEachEntryforEachEntry([parallelismThreshold,action])
forEachEntry([ :parallelismThreshold = v, :action = v ])
forEachEntry([parallelismThreshold,transformer,action])
forEachEntry([ :parallelismThreshold = v, :transformer = v, :action = v ])
void forEachEntry(long parallelismThreshold, Consumer action)
void forEachEntry(long parallelismThreshold, Function transformer, Consumer action)
forEachKeyforEachKey([parallelismThreshold,action])
forEachKey([ :parallelismThreshold = v, :action = v ])
forEachKey([parallelismThreshold,transformer,action])
forEachKey([ :parallelismThreshold = v, :transformer = v, :action = v ])
void forEachKey(long parallelismThreshold, Consumer action)
void forEachKey(long parallelismThreshold, Function transformer, Consumer action)
forEachValueforEachValue([parallelismThreshold,action])
forEachValue([ :parallelismThreshold = v, :action = v ])
forEachValue([parallelismThreshold,transformer,action])
forEachValue([ :parallelismThreshold = v, :transformer = v, :action = v ])
void forEachValue(long parallelismThreshold, Consumer action)
void forEachValue(long parallelismThreshold, Function transformer, Consumer action)
keyskeys()Enumeration keys()
mappingCountmappingCount()long mappingCount()
newKeySetnewKeySet()static KeySetView newKeySet()
reducereduce(parallelismThreshold,transformer,reducer)Object reduce(long parallelismThreshold, BiFunction transformer, BiFunction reducer)
reduceEntriesreduceEntries([parallelismThreshold,reducer])
reduceEntries([ :parallelismThreshold = v, :reducer = v ])
reduceEntries([parallelismThreshold,transformer,reducer])
reduceEntries([ :parallelismThreshold = v, :transformer = v, :reducer = v ])
Entry reduceEntries(long parallelismThreshold, BiFunction reducer)
Object reduceEntries(long parallelismThreshold, Function transformer, BiFunction reducer)
reduceEntriesToDoublereduceEntriesToDouble(parallelismThreshold,transformer,basis,reducer)double reduceEntriesToDouble(long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer)
reduceEntriesToIntreduceEntriesToInt(parallelismThreshold,transformer,basis,reducer)int reduceEntriesToInt(long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer)
reduceEntriesToLongreduceEntriesToLong(parallelismThreshold,transformer,basis,reducer)long reduceEntriesToLong(long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer)
reduceKeysreduceKeys([parallelismThreshold,reducer])
reduceKeys([ :parallelismThreshold = v, :reducer = v ])
reduceKeys([parallelismThreshold,transformer,reducer])
reduceKeys([ :parallelismThreshold = v, :transformer = v, :reducer = v ])
Object reduceKeys(long parallelismThreshold, BiFunction reducer)
Object reduceKeys(long parallelismThreshold, Function transformer, BiFunction reducer)
reduceKeysToDoublereduceKeysToDouble(parallelismThreshold,transformer,basis,reducer)double reduceKeysToDouble(long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer)
reduceKeysToIntreduceKeysToInt(parallelismThreshold,transformer,basis,reducer)int reduceKeysToInt(long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer)
reduceKeysToLongreduceKeysToLong(parallelismThreshold,transformer,basis,reducer)long reduceKeysToLong(long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer)
reduceToDoublereduceToDouble(parallelismThreshold,transformer,basis,reducer)double reduceToDouble(long parallelismThreshold, ToDoubleBiFunction transformer, double basis, DoubleBinaryOperator reducer)
reduceToIntreduceToInt(parallelismThreshold,transformer,basis,reducer)int reduceToInt(long parallelismThreshold, ToIntBiFunction transformer, int basis, IntBinaryOperator reducer)
reduceToLongreduceToLong(parallelismThreshold,transformer,basis,reducer)long reduceToLong(long parallelismThreshold, ToLongBiFunction transformer, long basis, LongBinaryOperator reducer)
reduceValuesreduceValues([parallelismThreshold,reducer])
reduceValues([ :parallelismThreshold = v, :reducer = v ])
reduceValues([parallelismThreshold,transformer,reducer])
reduceValues([ :parallelismThreshold = v, :transformer = v, :reducer = v ])
Object reduceValues(long parallelismThreshold, BiFunction reducer)
Object reduceValues(long parallelismThreshold, Function transformer, BiFunction reducer)
reduceValuesToDoublereduceValuesToDouble(parallelismThreshold,transformer,basis,reducer)double reduceValuesToDouble(long parallelismThreshold, ToDoubleFunction transformer, double basis, DoubleBinaryOperator reducer)
reduceValuesToIntreduceValuesToInt(parallelismThreshold,transformer,basis,reducer)int reduceValuesToInt(long parallelismThreshold, ToIntFunction transformer, int basis, IntBinaryOperator reducer)
reduceValuesToLongreduceValuesToLong(parallelismThreshold,transformer,basis,reducer)long reduceValuesToLong(long parallelismThreshold, ToLongFunction transformer, long basis, LongBinaryOperator reducer)
searchsearch(parallelismThreshold,searchFunction)Object search(long parallelismThreshold, BiFunction searchFunction)
searchEntriessearchEntries(parallelismThreshold,searchFunction)Object searchEntries(long parallelismThreshold, Function searchFunction)
searchKeyssearchKeys(parallelismThreshold,searchFunction)Object searchKeys(long parallelismThreshold, Function searchFunction)
searchValuessearchValues(parallelismThreshold,searchFunction)Object searchValues(long parallelismThreshold, Function searchFunction)

The methods and fields of AbstractMap are inherited.

ConcurrentHashMapKeySetView#

class final · extends Object · java.util.concurrent.ConcurrentHashMap$KeySetView

Implements: Set, Serializable

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
@toArray@toArray(a)Object[] toArray(Object[] a)
Object[] toArray(IntFunction generator)
addadd(e)boolean add(Object e)
addAlladdAll(c)boolean addAll(Collection c)
clearclear()void clear()
containscontains(o)boolean contains(Object o)
containsAllcontainsAll(c)boolean containsAll(Collection c)
getMappedValuegetMappedValue()Object getMappedValue()
isEmptyisEmpty()boolean isEmpty()
iteratoriterator()Iterator iterator()
parallelStreamparallelStream()Stream parallelStream()
removeremove(o)boolean remove(Object o)
removeIfremoveIf(filter)boolean removeIf(Predicate filter)
retainAllretainAll(c)boolean retainAll(Collection c)
sizesize()int size()
spliteratorspliterator()Spliterator spliterator()
streamstream()Stream stream()
toArraytoArray()Object[] toArray()

The methods and fields of Object are inherited.

ConcurrentLinkedDeque#

class · extends AbstractCollection · java.util.concurrent.ConcurrentLinkedDeque

Implements: Deque, Serializable

Constructors

new ConcurrentLinkedDeque()
new ConcurrentLinkedDeque(Collection c)

Ring: new ConcurrentLinkedDeque(args) uses the constructor with the fewest parameters (at least one); new ConcurrentLinkedDeque makes the object with the constructor without parameters; the others: (new ConcurrentLinkedDeque).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@remove@remove(o)boolean remove(Object o)
addFirstaddFirst(e)void addFirst(Object e)
addLastaddLast(e)void addLast(Object e)
descendingIteratordescendingIterator()Iterator descendingIterator()
elementelement()Object element()
getFirstgetFirst()Object getFirst()
getLastgetLast()Object getLast()
offeroffer(e)boolean offer(Object e)
offerFirstofferFirst(e)boolean offerFirst(Object e)
offerLastofferLast(e)boolean offerLast(Object e)
peekpeek()Object peek()
peekFirstpeekFirst()Object peekFirst()
peekLastpeekLast()Object peekLast()
pollpoll()Object poll()
pollFirstpollFirst()Object pollFirst()
pollLastpollLast()Object pollLast()
poppop()Object pop()
pushpush(e)void push(Object e)
removeremove()Object remove()
removeFirstremoveFirst()Object removeFirst()
removeFirstOccurrenceremoveFirstOccurrence(o)boolean removeFirstOccurrence(Object o)
removeLastremoveLast()Object removeLast()
removeLastOccurrenceremoveLastOccurrence(o)boolean removeLastOccurrence(Object o)
reversedreversed()Deque reversed()

The methods and fields of AbstractCollection are inherited.

ConcurrentLinkedQueue#

class · extends AbstractQueue · java.util.concurrent.ConcurrentLinkedQueue

Implements: Queue, Serializable

Constructors

new ConcurrentLinkedQueue()
new ConcurrentLinkedQueue(Collection c)

Ring: new ConcurrentLinkedQueue(args) uses the constructor with the fewest parameters (at least one); new ConcurrentLinkedQueue makes the object with the constructor without parameters; the others: (new ConcurrentLinkedQueue).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of AbstractQueue are inherited.

ConcurrentMap#

interface · java.util.concurrent.ConcurrentMap

Extends: Map

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(BiConsumer action)
@get@get(key)Object get(Object key)
@put@put(key,value)Object put(Object key, Object value)
clearclear()void clear()
computecompute(key,remappingFunction)Object compute(Object key, BiFunction remappingFunction)
computeIfAbsentcomputeIfAbsent(key,mappingFunction)Object computeIfAbsent(Object key, Function mappingFunction)
computeIfPresentcomputeIfPresent(key,remappingFunction)Object computeIfPresent(Object key, BiFunction remappingFunction)
containsKeycontainsKey(key)boolean containsKey(Object key)
containsValuecontainsValue(value)boolean containsValue(Object value)
entrySetentrySet()Set entrySet()
equalsequals(o)boolean equals(Object o)
getOrDefaultgetOrDefault(key,defaultValue)Object getOrDefault(Object key, Object defaultValue)
hashCodehashCode()int hashCode()
isEmptyisEmpty()boolean isEmpty()
keySetkeySet()Set keySet()
mergemerge(key,value,remappingFunction)Object merge(Object key, Object value, BiFunction remappingFunction)
putAllputAll(m)void putAll(Map m)
putIfAbsentputIfAbsent(key,value)Object putIfAbsent(Object key, Object value)
removeremove(key)
remove([key,value])
remove([ :key = v, :value = v ])
Object remove(Object key)
boolean remove(Object key, Object value)
replacereplace([key,value])
replace([ :key = v, :value = v ])
replace([key,oldValue,newValue])
replace([ :key = v, :oldValue = v, :newValue = v ])
Object replace(Object key, Object value)
boolean replace(Object key, Object oldValue, Object newValue)
replaceAllreplaceAll(function)void replaceAll(BiFunction function)
sizesize()int size()
valuesvalues()Collection values()

ConcurrentNavigableMap#

interface · java.util.concurrent.ConcurrentNavigableMap

Extends: ConcurrentMap, NavigableMap

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(BiConsumer action)
@get@get(key)Object get(Object key)
@put@put(key,value)Object put(Object key, Object value)
ceilingEntryceilingEntry(key)Entry ceilingEntry(Object key)
ceilingKeyceilingKey(key)Object ceilingKey(Object key)
clearclear()void clear()
comparatorcomparator()Comparator comparator()
computecompute(key,remappingFunction)Object compute(Object key, BiFunction remappingFunction)
computeIfAbsentcomputeIfAbsent(key,mappingFunction)Object computeIfAbsent(Object key, Function mappingFunction)
computeIfPresentcomputeIfPresent(key,remappingFunction)Object computeIfPresent(Object key, BiFunction remappingFunction)
containsKeycontainsKey(key)boolean containsKey(Object key)
containsValuecontainsValue(value)boolean containsValue(Object value)
descendingKeySetdescendingKeySet()NavigableSet descendingKeySet()
descendingMapdescendingMap()ConcurrentNavigableMap descendingMap()
entrySetentrySet()Set entrySet()
equalsequals(o)boolean equals(Object o)
firstEntryfirstEntry()Entry firstEntry()
firstKeyfirstKey()Object firstKey()
floorEntryfloorEntry(key)Entry floorEntry(Object key)
floorKeyfloorKey(key)Object floorKey(Object key)
getOrDefaultgetOrDefault(key,defaultValue)Object getOrDefault(Object key, Object defaultValue)
hashCodehashCode()int hashCode()
headMapheadMap(toKey)
headMap([toKey,inclusive])
headMap([ :toKey = v, :inclusive = v ])
ConcurrentNavigableMap headMap(Object toKey)
ConcurrentNavigableMap headMap(Object toKey, boolean inclusive)
higherEntryhigherEntry(key)Entry higherEntry(Object key)
higherKeyhigherKey(key)Object higherKey(Object key)
isEmptyisEmpty()boolean isEmpty()
keySetkeySet()NavigableSet keySet()
lastEntrylastEntry()Entry lastEntry()
lastKeylastKey()Object lastKey()
lowerEntrylowerEntry(key)Entry lowerEntry(Object key)
lowerKeylowerKey(key)Object lowerKey(Object key)
mergemerge(key,value,remappingFunction)Object merge(Object key, Object value, BiFunction remappingFunction)
navigableKeySetnavigableKeySet()NavigableSet navigableKeySet()
pollFirstEntrypollFirstEntry()Entry pollFirstEntry()
pollLastEntrypollLastEntry()Entry pollLastEntry()
putAllputAll(m)void putAll(Map m)
putFirstputFirst(k,v)Object putFirst(Object k, Object v)
putIfAbsentputIfAbsent(key,value)Object putIfAbsent(Object key, Object value)
putLastputLast(k,v)Object putLast(Object k, Object v)
removeremove(key)
remove([key,value])
remove([ :key = v, :value = v ])
Object remove(Object key)
boolean remove(Object key, Object value)
replacereplace([key,value])
replace([ :key = v, :value = v ])
replace([key,oldValue,newValue])
replace([ :key = v, :oldValue = v, :newValue = v ])
Object replace(Object key, Object value)
boolean replace(Object key, Object oldValue, Object newValue)
replaceAllreplaceAll(function)void replaceAll(BiFunction function)
reversedreversed()NavigableMap reversed()
sequencedEntrySetsequencedEntrySet()SequencedSet sequencedEntrySet()
sequencedKeySetsequencedKeySet()SequencedSet sequencedKeySet()
sequencedValuessequencedValues()SequencedCollection sequencedValues()
sizesize()int size()
subMapsubMap([fromKey,toKey])
subMap([ :fromKey = v, :toKey = v ])
subMap([fromKey,fromInclusive,toKey,toInclusive])
subMap([ :fromKey = v, :fromInclusive = v, :toKey = v, :toInclusive = v ])
ConcurrentNavigableMap subMap(Object fromKey, Object toKey)
ConcurrentNavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive)
tailMaptailMap(fromKey)
tailMap([fromKey,inclusive])
tailMap([ :fromKey = v, :inclusive = v ])
ConcurrentNavigableMap tailMap(Object fromKey)
ConcurrentNavigableMap tailMap(Object fromKey, boolean inclusive)
valuesvalues()Collection values()

ConcurrentSkipListMap#

class · extends AbstractMap · java.util.concurrent.ConcurrentSkipListMap

Implements: ConcurrentNavigableMap, Cloneable, Serializable

Constructors

new ConcurrentSkipListMap()
new ConcurrentSkipListMap(Map m)
new ConcurrentSkipListMap(Comparator comparator)
new ConcurrentSkipListMap(SortedMap m)

Ring: new ConcurrentSkipListMap(args) uses the constructor with the fewest parameters (at least one); new ConcurrentSkipListMap makes the object with the constructor without parameters; the others: (new ConcurrentSkipListMap).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
ceilingEntryceilingEntry(key)Entry ceilingEntry(Object key)
ceilingKeyceilingKey(key)Object ceilingKey(Object key)
cloneclone()ConcurrentSkipListMap clone()
comparatorcomparator()Comparator comparator()
descendingKeySetdescendingKeySet()NavigableSet descendingKeySet()
descendingMapdescendingMap()ConcurrentNavigableMap descendingMap()
firstEntryfirstEntry()Entry firstEntry()
firstKeyfirstKey()Object firstKey()
floorEntryfloorEntry(key)Entry floorEntry(Object key)
floorKeyfloorKey(key)Object floorKey(Object key)
headMapheadMap(toKey)
headMap([toKey,inclusive])
headMap([ :toKey = v, :inclusive = v ])
ConcurrentNavigableMap headMap(Object toKey)
ConcurrentNavigableMap headMap(Object toKey, boolean inclusive)
higherEntryhigherEntry(key)Entry higherEntry(Object key)
higherKeyhigherKey(key)Object higherKey(Object key)
lastEntrylastEntry()Entry lastEntry()
lastKeylastKey()Object lastKey()
lowerEntrylowerEntry(key)Entry lowerEntry(Object key)
lowerKeylowerKey(key)Object lowerKey(Object key)
navigableKeySetnavigableKeySet()NavigableSet navigableKeySet()
pollFirstEntrypollFirstEntry()Entry pollFirstEntry()
pollLastEntrypollLastEntry()Entry pollLastEntry()
putFirstputFirst(k,v)Object putFirst(Object k, Object v)
putLastputLast(k,v)Object putLast(Object k, Object v)
reversedreversed()NavigableMap reversed()
sequencedEntrySetsequencedEntrySet()SequencedSet sequencedEntrySet()
sequencedKeySetsequencedKeySet()SequencedSet sequencedKeySet()
sequencedValuessequencedValues()SequencedCollection sequencedValues()
subMapsubMap([fromKey,toKey])
subMap([ :fromKey = v, :toKey = v ])
subMap([fromKey,fromInclusive,toKey,toInclusive])
subMap([ :fromKey = v, :fromInclusive = v, :toKey = v, :toInclusive = v ])
ConcurrentNavigableMap subMap(Object fromKey, Object toKey)
ConcurrentNavigableMap subMap(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive)
tailMaptailMap(fromKey)
tailMap([fromKey,inclusive])
tailMap([ :fromKey = v, :inclusive = v ])
ConcurrentNavigableMap tailMap(Object fromKey)
ConcurrentNavigableMap tailMap(Object fromKey, boolean inclusive)

The methods and fields of AbstractMap are inherited.

ConcurrentSkipListSet#

class · extends AbstractSet · java.util.concurrent.ConcurrentSkipListSet

Implements: NavigableSet, Cloneable, Serializable

Constructors

new ConcurrentSkipListSet()
new ConcurrentSkipListSet(SortedSet s)
new ConcurrentSkipListSet(Collection c)
new ConcurrentSkipListSet(Comparator comparator)

Ring: new ConcurrentSkipListSet(args) uses the constructor with the fewest parameters (at least one); new ConcurrentSkipListSet makes the object with the constructor without parameters; the others: (new ConcurrentSkipListSet).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
addFirstaddFirst(e)void addFirst(Object e)
addLastaddLast(e)void addLast(Object e)
ceilingceiling(e)Object ceiling(Object e)
cloneclone()ConcurrentSkipListSet clone()
comparatorcomparator()Comparator comparator()
descendingIteratordescendingIterator()Iterator descendingIterator()
descendingSetdescendingSet()NavigableSet descendingSet()
firstfirst()Object first()
floorfloor(e)Object floor(Object e)
getFirstgetFirst()Object getFirst()
getLastgetLast()Object getLast()
headSetheadSet(toElement)
headSet([toElement,inclusive])
headSet([ :toElement = v, :inclusive = v ])
NavigableSet headSet(Object toElement)
NavigableSet headSet(Object toElement, boolean inclusive)
higherhigher(e)Object higher(Object e)
lastlast()Object last()
lowerlower(e)Object lower(Object e)
pollFirstpollFirst()Object pollFirst()
pollLastpollLast()Object pollLast()
removeFirstremoveFirst()Object removeFirst()
removeLastremoveLast()Object removeLast()
reversedreversed()NavigableSet reversed()
subSetsubSet([fromElement,toElement])
subSet([ :fromElement = v, :toElement = v ])
subSet([fromElement,fromInclusive,toElement,toInclusive])
subSet([ :fromElement = v, :fromInclusive = v, :toElement = v, :toInclusive = v ])
NavigableSet subSet(Object fromElement, Object toElement)
NavigableSet subSet(Object fromElement, boolean fromInclusive, Object toElement, boolean toInclusive)
tailSettailSet(fromElement)
tailSet([fromElement,inclusive])
tailSet([ :fromElement = v, :inclusive = v ])
NavigableSet tailSet(Object fromElement)
NavigableSet tailSet(Object fromElement, boolean inclusive)

The methods and fields of AbstractSet are inherited.

CopyOnWriteArrayList#

class · extends Object · java.util.concurrent.CopyOnWriteArrayList

Implements: List, RandomAccess, Cloneable, Serializable

Constructors

new CopyOnWriteArrayList()
new CopyOnWriteArrayList(Object[] c)
new CopyOnWriteArrayList(Collection c)

Ring: new CopyOnWriteArrayList(args) uses the constructor with the fewest parameters (at least one); new CopyOnWriteArrayList makes the object with the constructor without parameters; the others: (new CopyOnWriteArrayList).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
@get@get(index)Object get(int index)
@listIterator@listIterator(index)ListIterator listIterator(int index)
@toArray@toArray(a)Object[] toArray(Object[] a)
Object[] toArray(IntFunction generator)
addadd(e)
add([index,element])
add([ :index = v, :element = v ])
boolean add(Object e)
void add(int index, Object element)
addAlladdAll(c)
addAll([index,c])
addAll([ :index = v, :c = v ])
boolean addAll(Collection c)
boolean addAll(int index, Collection c)
addAllAbsentaddAllAbsent(c)int addAllAbsent(Collection c)
addFirstaddFirst(e)void addFirst(Object e)
addIfAbsentaddIfAbsent(e)boolean addIfAbsent(Object e)
addLastaddLast(e)void addLast(Object e)
clearclear()void clear()
cloneclone()Object clone()
containscontains(o)boolean contains(Object o)
containsAllcontainsAll(c)boolean containsAll(Collection c)
getFirstgetFirst()Object getFirst()
getLastgetLast()Object getLast()
indexOfindexOf(o)
indexOf([e,index])
indexOf([ :e = v, :index = v ])
int indexOf(Object o)
int indexOf(Object e, int index)
isEmptyisEmpty()boolean isEmpty()
iteratoriterator()Iterator iterator()
lastIndexOflastIndexOf(o)
lastIndexOf([e,index])
lastIndexOf([ :e = v, :index = v ])
int lastIndexOf(Object o)
int lastIndexOf(Object e, int index)
listIteratorlistIterator()ListIterator listIterator()
parallelStreamparallelStream()Stream parallelStream()
removeremove(index)Object remove(int index)
boolean remove(Object o)
removeAllremoveAll(c)boolean removeAll(Collection c)
removeFirstremoveFirst()Object removeFirst()
removeIfremoveIf(filter)boolean removeIf(Predicate filter)
removeLastremoveLast()Object removeLast()
replaceAllreplaceAll(operator)void replaceAll(UnaryOperator operator)
retainAllretainAll(c)boolean retainAll(Collection c)
reversedreversed()List reversed()
setset(index,element)Object set(int index, Object element)
sizesize()int size()
sortsort(c)void sort(Comparator c)
spliteratorspliterator()Spliterator spliterator()
streamstream()Stream stream()
subListsubList(fromIndex,toIndex)List subList(int fromIndex, int toIndex)
toArraytoArray()Object[] toArray()

The methods and fields of Object are inherited.

CopyOnWriteArraySet#

class · extends AbstractSet · java.util.concurrent.CopyOnWriteArraySet

Implements: Serializable

Constructors

new CopyOnWriteArraySet()
new CopyOnWriteArraySet(Collection c)

Ring: new CopyOnWriteArraySet(args) uses the constructor with the fewest parameters (at least one); new CopyOnWriteArraySet makes the object with the constructor without parameters; the others: (new CopyOnWriteArraySet).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of AbstractSet are inherited.

CountDownLatch#

class · extends Object · java.util.concurrent.CountDownLatch

Constructors

new CountDownLatch(int count)

Ring: new CountDownLatch(args) uses the constructor with the fewest parameters (at least one); new CountDownLatch makes the object with the constructor without parameters; the others: (new CountDownLatch).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@await@await([timeout,unit])
@await([ :timeout = v, :unit = v ])
boolean await(long timeout, TimeUnit unit)
awaitawait()void await()
countDowncountDown()void countDown()
getCountgetCount()long getCount()

The methods and fields of Object are inherited.

CountedCompleter#

abstract · extends ForkJoinTask · java.util.concurrent.CountedCompleter

Methods

MethodRing callJava overloads
addToPendingCountaddToPendingCount(delta)void addToPendingCount(int delta)
compareAndSetPendingCountcompareAndSetPendingCount(expected,count)boolean compareAndSetPendingCount(int expected, int count)
computecompute()void compute()
decrementPendingCountUnlessZerodecrementPendingCountUnlessZero()int decrementPendingCountUnlessZero()
firstCompletefirstComplete()CountedCompleter firstComplete()
getCompletergetCompleter()CountedCompleter getCompleter()
getPendingCountgetPendingCount()int getPendingCount()
getRootgetRoot()CountedCompleter getRoot()
helpCompletehelpComplete(maxTasks)void helpComplete(int maxTasks)
nextCompletenextComplete()CountedCompleter nextComplete()
onCompletiononCompletion(caller)void onCompletion(CountedCompleter caller)
onExceptionalCompletiononExceptionalCompletion(ex,caller)boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller)
propagateCompletionpropagateCompletion()void propagateCompletion()
quietlyCompleteRootquietlyCompleteRoot()void quietlyCompleteRoot()
setPendingCountsetPendingCount(count)void setPendingCount(int count)
tryCompletetryComplete()void tryComplete()

The methods and fields of ForkJoinTask are inherited.

CyclicBarrier#

class · extends Object · java.util.concurrent.CyclicBarrier

Constructors

new CyclicBarrier(int parties)
new CyclicBarrier(int parties, Runnable barrierAction)

Ring: new CyclicBarrier(args) uses the constructor with the fewest parameters (at least one); new CyclicBarrier makes the object with the constructor without parameters; the others: (new CyclicBarrier).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@await@await([timeout,unit])
@await([ :timeout = v, :unit = v ])
int await(long timeout, TimeUnit unit)
awaitawait()int await()
getNumberWaitinggetNumberWaiting()int getNumberWaiting()
getPartiesgetParties()int getParties()
isBrokenisBroken()boolean isBroken()
resetreset()void reset()

The methods and fields of Object are inherited.

Delayed#

interface · java.util.concurrent.Delayed

Extends: Comparable

Methods

MethodRing callJava overloads
compareTocompareTo(o)int compareTo(Object o)
getDelaygetDelay(unit)long getDelay(TimeUnit unit)

DelayQueue#

class · extends AbstractQueue · java.util.concurrent.DelayQueue

Implements: BlockingQueue

Constructors

new DelayQueue()
new DelayQueue(Collection c)

Ring: new DelayQueue(args) uses the constructor with the fewest parameters (at least one); new DelayQueue makes the object with the constructor without parameters; the others: (new DelayQueue).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Delayed poll(long timeout, TimeUnit unit)
@put@put(e)void put(Delayed e)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Delayed e)
boolean offer(Delayed e, long timeout, TimeUnit unit)
remainingCapacityremainingCapacity()int remainingCapacity()
taketake()Delayed take()

The methods and fields of AbstractQueue are inherited.

Exchanger#

class · extends Object · java.util.concurrent.Exchanger

Constructors

new Exchanger()

Ring: new Exchanger(args) uses the constructor with the fewest parameters (at least one); new Exchanger makes the object with the constructor without parameters; the others: (new Exchanger).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
exchangeexchange(x)
exchange([x,timeout,unit])
exchange([ :x = v, :timeout = v, :unit = v ])
Object exchange(Object x)
Object exchange(Object x, long timeout, TimeUnit unit)

The methods and fields of Object are inherited.

ExecutionException#

class · extends Exception · java.util.concurrent.ExecutionException

Constructors

new ExecutionException(Throwable cause)
new ExecutionException(String message, Throwable cause)

Ring: new ExecutionException(args) uses the constructor with the fewest parameters (at least one); new ExecutionException makes the object with the constructor without parameters; the others: (new ExecutionException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

Executor#

interface · java.util.concurrent.Executor

Methods

MethodRing callJava overloads
executeexecute(command)void execute(Runnable command)

ExecutorCompletionService#

class · extends Object · java.util.concurrent.ExecutorCompletionService

Implements: CompletionService

Constructors

new ExecutorCompletionService(Executor executor)
new ExecutorCompletionService(Executor executor, BlockingQueue completionQueue)

Ring: new ExecutorCompletionService(args) uses the constructor with the fewest parameters (at least one); new ExecutorCompletionService makes the object with the constructor without parameters; the others: (new ExecutorCompletionService).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Future poll(long timeout, TimeUnit unit)
pollpoll()Future poll()
submitsubmit(task)
submit([task,result])
submit([ :task = v, :result = v ])
Future submit(Callable task)
Future submit(Runnable task, Object result)
taketake()Future take()

The methods and fields of Object are inherited.

Executors#

class final · extends Object · java.util.concurrent.Executors

Methods

MethodRing callJava overloads
@newCachedThreadPool@newCachedThreadPool(threadFactory)static ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
@newSingleThreadExecutor@newSingleThreadExecutor(threadFactory)static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
@newSingleThreadScheduledExecutor@newSingleThreadScheduledExecutor(threadFactory)static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
@newWorkStealingPool@newWorkStealingPool(parallelism)static ExecutorService newWorkStealingPool(int parallelism)
callablecallable(task)
callable([task,result])
callable([ :task = v, :result = v ])
static Callable callable(Runnable task)
static Callable callable(PrivilegedAction action)
static Callable callable(PrivilegedExceptionAction action)
static Callable callable(Runnable task, Object result)
defaultThreadFactorydefaultThreadFactory()static ThreadFactory defaultThreadFactory()
newCachedThreadPoolnewCachedThreadPool()static ExecutorService newCachedThreadPool()
newFixedThreadPoolnewFixedThreadPool(nThreads)
newFixedThreadPool([nThreads,threadFactory])
newFixedThreadPool([ :nThreads = v, :threadFactory = v ])
static ExecutorService newFixedThreadPool(int nThreads)
static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
newScheduledThreadPoolnewScheduledThreadPool(corePoolSize)
newScheduledThreadPool([corePoolSize,threadFactory])
newScheduledThreadPool([ :corePoolSize = v, :threadFactory = v ])
static ScheduledExecutorService newScheduledThreadPool(int corePoolSize)
static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
newSingleThreadExecutornewSingleThreadExecutor()static ExecutorService newSingleThreadExecutor()
newSingleThreadScheduledExecutornewSingleThreadScheduledExecutor()static ScheduledExecutorService newSingleThreadScheduledExecutor()
newThreadPerTaskExecutornewThreadPerTaskExecutor(threadFactory)static ExecutorService newThreadPerTaskExecutor(ThreadFactory threadFactory)
newVirtualThreadPerTaskExecutornewVirtualThreadPerTaskExecutor()static ExecutorService newVirtualThreadPerTaskExecutor()
newWorkStealingPoolnewWorkStealingPool()static ExecutorService newWorkStealingPool()
privilegedCallableprivilegedCallable(callable)static Callable privilegedCallable(Callable callable)
privilegedCallableUsingCurrentClassLoaderprivilegedCallableUsingCurrentClassLoader(callable)static Callable privilegedCallableUsingCurrentClassLoader(Callable callable)
privilegedThreadFactoryprivilegedThreadFactory()static ThreadFactory privilegedThreadFactory()
unconfigurableExecutorServiceunconfigurableExecutorService(executor)static ExecutorService unconfigurableExecutorService(ExecutorService executor)
unconfigurableScheduledExecutorServiceunconfigurableScheduledExecutorService(executor)static ScheduledExecutorService unconfigurableScheduledExecutorService(ScheduledExecutorService executor)

The methods and fields of Object are inherited.

ExecutorService#

interface · java.util.concurrent.ExecutorService

Extends: Executor, AutoCloseable

Methods

MethodRing callJava overloads
awaitTerminationawaitTermination(timeout,unit)boolean awaitTermination(long timeout, TimeUnit unit)
closeclose()void close()
executeexecute(command)void execute(Runnable command)
invokeAllinvokeAll(tasks)
invokeAll([tasks,timeout,unit])
invokeAll([ :tasks = v, :timeout = v, :unit = v ])
List invokeAll(Collection tasks)
List invokeAll(Collection tasks, long timeout, TimeUnit unit)
invokeAnyinvokeAny(tasks)
invokeAny([tasks,timeout,unit])
invokeAny([ :tasks = v, :timeout = v, :unit = v ])
Object invokeAny(Collection tasks)
Object invokeAny(Collection tasks, long timeout, TimeUnit unit)
isShutdownisShutdown()boolean isShutdown()
isTerminatedisTerminated()boolean isTerminated()
shutdownshutdown()void shutdown()
shutdownNowshutdownNow()List shutdownNow()
submitsubmit(task)
submit([task,result])
submit([ :task = v, :result = v ])
Future submit(Runnable task)
Future submit(Callable task)
Future submit(Runnable task, Object result)

Flow#

class final · extends Object · java.util.concurrent.Flow

Methods

MethodRing callJava overloads
defaultBufferSizedefaultBufferSize()static int defaultBufferSize()

The methods and fields of Object are inherited.

FlowProcessor#

interface · java.util.concurrent.Flow$Processor

Extends: FlowSubscriber, FlowPublisher

Methods

MethodRing callJava overloads
onCompleteonComplete()void onComplete()
onErroronError(throwable)void onError(Throwable throwable)
onNextonNext(item)void onNext(Object item)
onSubscribeonSubscribe(subscription)void onSubscribe(Subscription subscription)
subscribesubscribe(subscriber)void subscribe(Subscriber subscriber)

FlowPublisher#

interface · java.util.concurrent.Flow$Publisher

Methods

MethodRing callJava overloads
subscribesubscribe(subscriber)void subscribe(Subscriber subscriber)

FlowSubscriber#

interface · java.util.concurrent.Flow$Subscriber

Methods

MethodRing callJava overloads
onCompleteonComplete()void onComplete()
onErroronError(throwable)void onError(Throwable throwable)
onNextonNext(item)void onNext(Object item)
onSubscribeonSubscribe(subscription)void onSubscribe(Subscription subscription)

FlowSubscription#

interface · java.util.concurrent.Flow$Subscription

Methods

MethodRing callJava overloads
cancelcancel()void cancel()
requestrequest(n)void request(long n)

ForkJoinPool#

class · extends AbstractExecutorService · java.util.concurrent.ForkJoinPool

Implements: ScheduledExecutorService

Constructors

new ForkJoinPool()
new ForkJoinPool(int parallelism)
new ForkJoinPool(int parallelism, ForkJoinWorkerThreadFactory factory, UncaughtExceptionHandler handler, boolean asyncMode)
new ForkJoinPool(int parallelism, ForkJoinWorkerThreadFactory factory, UncaughtExceptionHandler handler, boolean asyncMode, int corePoolSize, int maximumPoolSize, int minimumRunnable, Predicate saturate, long keepAliveTime, TimeUnit unit)

Ring: new ForkJoinPool(args) uses the constructor with the fewest parameters (at least one); new ForkJoinPool makes the object with the constructor without parameters; the others: (new ForkJoinPool).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
defaultForkJoinWorkerThreadFactoryForkJoinWorkerThreadFactoryconstant · statico.defaultForkJoinWorkerThreadFactory

Methods

MethodRing callJava overloads
awaitQuiescenceawaitQuiescence(timeout,unit)boolean awaitQuiescence(long timeout, TimeUnit unit)
cancelDelayedTasksOnShutdowncancelDelayedTasksOnShutdown()void cancelDelayedTasksOnShutdown()
commonPoolcommonPool()static ForkJoinPool commonPool()
externalSubmitexternalSubmit(task)ForkJoinTask externalSubmit(ForkJoinTask task)
getActiveThreadCountgetActiveThreadCount()int getActiveThreadCount()
getAsyncModegetAsyncMode()boolean getAsyncMode()
getCommonPoolParallelismgetCommonPoolParallelism()static int getCommonPoolParallelism()
getDelayedTaskCountgetDelayedTaskCount()long getDelayedTaskCount()
getFactorygetFactory()ForkJoinWorkerThreadFactory getFactory()
getParallelismgetParallelism()int getParallelism()
getPoolSizegetPoolSize()int getPoolSize()
getQueuedSubmissionCountgetQueuedSubmissionCount()int getQueuedSubmissionCount()
getQueuedTaskCountgetQueuedTaskCount()long getQueuedTaskCount()
getRunningThreadCountgetRunningThreadCount()int getRunningThreadCount()
getStealCountgetStealCount()long getStealCount()
getUncaughtExceptionHandlergetUncaughtExceptionHandler()UncaughtExceptionHandler getUncaughtExceptionHandler()
hasQueuedSubmissionshasQueuedSubmissions()boolean hasQueuedSubmissions()
invokeinvoke(task)Object invoke(ForkJoinTask task)
invokeAllUninterruptiblyinvokeAllUninterruptibly(tasks)List invokeAllUninterruptibly(Collection tasks)
isQuiescentisQuiescent()boolean isQuiescent()
isTerminatingisTerminating()boolean isTerminating()
lazySubmitlazySubmit(task)ForkJoinTask lazySubmit(ForkJoinTask task)
managedBlockmanagedBlock(blocker)static void managedBlock(ManagedBlocker blocker)
scheduleschedule(callable,delay,unit)ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit)
ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit)
scheduleAtFixedRatescheduleAtFixedRate(command,initialDelay,period,unit)ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleWithFixedDelayscheduleWithFixedDelay(command,initialDelay,delay,unit)ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
setParallelismsetParallelism(size)int setParallelism(int size)
submitWithTimeoutsubmitWithTimeout(callable,timeout,unit,timeoutAction)ForkJoinTask submitWithTimeout(Callable callable, long timeout, TimeUnit unit, Consumer timeoutAction)

The methods and fields of AbstractExecutorService are inherited.

ForkJoinPoolForkJoinWorkerThreadFactory#

interface · java.util.concurrent.ForkJoinPool$ForkJoinWorkerThreadFactory

Methods

MethodRing callJava overloads
newThreadnewThread(pool)ForkJoinWorkerThread newThread(ForkJoinPool pool)

ForkJoinPoolManagedBlocker#

interface · java.util.concurrent.ForkJoinPool$ManagedBlocker

Methods

MethodRing callJava overloads
blockblock()boolean block()
isReleasableisReleasable()boolean isReleasable()

ForkJoinTask#

abstract · extends Object · java.util.concurrent.ForkJoinTask

Implements: Future, Serializable

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
@quietlyJoin@quietlyJoin([timeout,unit])
@quietlyJoin([ :timeout = v, :unit = v ])
boolean quietlyJoin(long timeout, TimeUnit unit)
adaptadapt(callable)
adapt([runnable,result])
adapt([ :runnable = v, :result = v ])
static ForkJoinTask adapt(Callable callable)
static ForkJoinTask adapt(Runnable runnable)
static ForkJoinTask adapt(Runnable runnable, Object result)
adaptInterruptibleadaptInterruptible(runnable)
adaptInterruptible([runnable,result])
adaptInterruptible([ :runnable = v, :result = v ])
static ForkJoinTask adaptInterruptible(Runnable runnable)
static ForkJoinTask adaptInterruptible(Callable callable)
static ForkJoinTask adaptInterruptible(Runnable runnable, Object result)
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
compareAndSetForkJoinTaskTagcompareAndSetForkJoinTaskTag(expect,update)boolean compareAndSetForkJoinTaskTag(short expect, short update)
completecomplete(value)void complete(Object value)
completeExceptionallycompleteExceptionally(ex)void completeExceptionally(Throwable ex)
exceptionNowexceptionNow()Throwable exceptionNow()
forkfork()ForkJoinTask fork()
getExceptiongetException()Throwable getException()
getForkJoinTaskTaggetForkJoinTaskTag()short getForkJoinTaskTag()
getPoolgetPool()static ForkJoinPool getPool()
getQueuedTaskCountgetQueuedTaskCount()static int getQueuedTaskCount()
getRawResultgetRawResult()Object getRawResult()
getSurplusQueuedTaskCountgetSurplusQueuedTaskCount()static int getSurplusQueuedTaskCount()
helpQuiescehelpQuiesce()static void helpQuiesce()
inForkJoinPoolinForkJoinPool()static boolean inForkJoinPool()
invokeinvoke()Object invoke()
invokeAllinvokeAll(tasks)
invokeAll([t1,t2])
invokeAll([ :t1 = v, :t2 = v ])
static Collection invokeAll(Collection tasks)
static void invokeAll(ForkJoinTask[] tasks)
static void invokeAll(ForkJoinTask t1, ForkJoinTask t2)
isCancelledisCancelled()boolean isCancelled()
isCompletedAbnormallyisCompletedAbnormally()boolean isCompletedAbnormally()
isCompletedNormallyisCompletedNormally()boolean isCompletedNormally()
isDoneisDone()boolean isDone()
joinjoin()Object join()
quietlyCompletequietlyComplete()void quietlyComplete()
quietlyInvokequietlyInvoke()void quietlyInvoke()
quietlyJoinquietlyJoin()void quietlyJoin()
quietlyJoinUninterruptiblyquietlyJoinUninterruptibly(timeout,unit)boolean quietlyJoinUninterruptibly(long timeout, TimeUnit unit)
reinitializereinitialize()void reinitialize()
resultNowresultNow()Object resultNow()
setForkJoinTaskTagsetForkJoinTaskTag(newValue)short setForkJoinTaskTag(short newValue)
statestate()State state()
tryUnforktryUnfork()boolean tryUnfork()

The methods and fields of Object are inherited.

ForkJoinWorkerThread#

class · extends Thread · java.util.concurrent.ForkJoinWorkerThread

Methods

MethodRing callJava overloads
getPoolgetPool()ForkJoinPool getPool()
getPoolIndexgetPoolIndex()int getPoolIndex()
getQueuedTaskCountgetQueuedTaskCount()int getQueuedTaskCount()

The methods and fields of Thread are inherited.

Future#

interface · java.util.concurrent.Future

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
exceptionNowexceptionNow()Throwable exceptionNow()
isCancelledisCancelled()boolean isCancelled()
isDoneisDone()boolean isDone()
resultNowresultNow()Object resultNow()
statestate()State state()

FutureState#

enum · extends Enum · java.util.concurrent.Future$State

Fields

NameTypeAccessIn Ring
RUNNINGStateconstant · statico.RUNNING
SUCCESSStateconstant · statico.SUCCESS
FAILEDStateconstant · statico.FAILED
CANCELLEDStateconstant · statico.CANCELLED

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static State valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static State[] values()

The methods and fields of Enum are inherited.

FutureTask#

class · extends Object · java.util.concurrent.FutureTask

Implements: RunnableFuture

Constructors

new FutureTask(Callable callable)
new FutureTask(Runnable runnable, Object result)

Ring: new FutureTask(args) uses the constructor with the fewest parameters (at least one); new FutureTask makes the object with the constructor without parameters; the others: (new FutureTask).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
exceptionNowexceptionNow()Throwable exceptionNow()
isCancelledisCancelled()boolean isCancelled()
isDoneisDone()boolean isDone()
resultNowresultNow()Object resultNow()
runrun()void run()
statestate()State state()

The methods and fields of Object are inherited.

LinkedBlockingDeque#

class · extends AbstractQueue · java.util.concurrent.LinkedBlockingDeque

Implements: BlockingDeque, Serializable

Constructors

new LinkedBlockingDeque()
new LinkedBlockingDeque(Collection c)
new LinkedBlockingDeque(int capacity)

Ring: new LinkedBlockingDeque(args) uses the constructor with the fewest parameters (at least one); new LinkedBlockingDeque makes the object with the constructor without parameters; the others: (new LinkedBlockingDeque).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@pollFirst@pollFirst([timeout,unit])
@pollFirst([ :timeout = v, :unit = v ])
Object pollFirst(long timeout, TimeUnit unit)
@pollLast@pollLast([timeout,unit])
@pollLast([ :timeout = v, :unit = v ])
Object pollLast(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
addFirstaddFirst(e)void addFirst(Object e)
addLastaddLast(e)void addLast(Object e)
descendingIteratordescendingIterator()Iterator descendingIterator()
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
getFirstgetFirst()Object getFirst()
getLastgetLast()Object getLast()
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
offerFirstofferFirst(e)
offerFirst([e,timeout,unit])
offerFirst([ :e = v, :timeout = v, :unit = v ])
boolean offerFirst(Object e)
boolean offerFirst(Object e, long timeout, TimeUnit unit)
offerLastofferLast(e)
offerLast([e,timeout,unit])
offerLast([ :e = v, :timeout = v, :unit = v ])
boolean offerLast(Object e)
boolean offerLast(Object e, long timeout, TimeUnit unit)
peekFirstpeekFirst()Object peekFirst()
peekLastpeekLast()Object peekLast()
pollFirstpollFirst()Object pollFirst()
pollLastpollLast()Object pollLast()
poppop()Object pop()
pushpush(e)void push(Object e)
putFirstputFirst(e)void putFirst(Object e)
putLastputLast(e)void putLast(Object e)
remainingCapacityremainingCapacity()int remainingCapacity()
removeFirstremoveFirst()Object removeFirst()
removeFirstOccurrenceremoveFirstOccurrence(o)boolean removeFirstOccurrence(Object o)
removeLastremoveLast()Object removeLast()
removeLastOccurrenceremoveLastOccurrence(o)boolean removeLastOccurrence(Object o)
reversedreversed()Deque reversed()
taketake()Object take()
takeFirsttakeFirst()Object takeFirst()
takeLasttakeLast()Object takeLast()

The methods and fields of AbstractQueue are inherited.

LinkedBlockingQueue#

class · extends AbstractQueue · java.util.concurrent.LinkedBlockingQueue

Implements: BlockingQueue, Serializable

Constructors

new LinkedBlockingQueue()
new LinkedBlockingQueue(int capacity)
new LinkedBlockingQueue(Collection c)

Ring: new LinkedBlockingQueue(args) uses the constructor with the fewest parameters (at least one); new LinkedBlockingQueue makes the object with the constructor without parameters; the others: (new LinkedBlockingQueue).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
remainingCapacityremainingCapacity()int remainingCapacity()
taketake()Object take()

The methods and fields of AbstractQueue are inherited.

LinkedTransferQueue#

class · extends AbstractQueue · java.util.concurrent.LinkedTransferQueue

Implements: TransferQueue, Serializable

Constructors

new LinkedTransferQueue()
new LinkedTransferQueue(Collection c)

Ring: new LinkedTransferQueue(args) uses the constructor with the fewest parameters (at least one); new LinkedTransferQueue makes the object with the constructor without parameters; the others: (new LinkedTransferQueue).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
getWaitingConsumerCountgetWaitingConsumerCount()int getWaitingConsumerCount()
hasWaitingConsumerhasWaitingConsumer()boolean hasWaitingConsumer()
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
remainingCapacityremainingCapacity()int remainingCapacity()
taketake()Object take()
transfertransfer(e)void transfer(Object e)
tryTransfertryTransfer(e)
tryTransfer([e,timeout,unit])
tryTransfer([ :e = v, :timeout = v, :unit = v ])
boolean tryTransfer(Object e)
boolean tryTransfer(Object e, long timeout, TimeUnit unit)

The methods and fields of AbstractQueue are inherited.

Phaser#

class · extends Object · java.util.concurrent.Phaser

Constructors

new Phaser()
new Phaser(int parties)
new Phaser(Phaser parent)
new Phaser(Phaser parent, int parties)

Ring: new Phaser(args) uses the constructor with the fewest parameters (at least one); new Phaser makes the object with the constructor without parameters; the others: (new Phaser).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
arrivearrive()int arrive()
arriveAndAwaitAdvancearriveAndAwaitAdvance()int arriveAndAwaitAdvance()
arriveAndDeregisterarriveAndDeregister()int arriveAndDeregister()
awaitAdvanceawaitAdvance(phase)int awaitAdvance(int phase)
awaitAdvanceInterruptiblyawaitAdvanceInterruptibly(phase)
awaitAdvanceInterruptibly([phase,timeout,unit])
awaitAdvanceInterruptibly([ :phase = v, :timeout = v, :unit = v ])
int awaitAdvanceInterruptibly(int phase)
int awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit)
bulkRegisterbulkRegister(parties)int bulkRegister(int parties)
forceTerminationforceTermination()void forceTermination()
getArrivedPartiesgetArrivedParties()int getArrivedParties()
getParentgetParent()Phaser getParent()
getPhasegetPhase()int getPhase()
getRegisteredPartiesgetRegisteredParties()int getRegisteredParties()
getRootgetRoot()Phaser getRoot()
getUnarrivedPartiesgetUnarrivedParties()int getUnarrivedParties()
isTerminatedisTerminated()boolean isTerminated()
registerregister()int register()

The methods and fields of Object are inherited.

PriorityBlockingQueue#

class · extends AbstractQueue · java.util.concurrent.PriorityBlockingQueue

Implements: BlockingQueue, Serializable

Constructors

new PriorityBlockingQueue()
new PriorityBlockingQueue(Collection c)
new PriorityBlockingQueue(int initialCapacity)
new PriorityBlockingQueue(int initialCapacity, Comparator comparator)

Ring: new PriorityBlockingQueue(args) uses the constructor with the fewest parameters (at least one); new PriorityBlockingQueue makes the object with the constructor without parameters; the others: (new PriorityBlockingQueue).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
comparatorcomparator()Comparator comparator()
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
remainingCapacityremainingCapacity()int remainingCapacity()
taketake()Object take()

The methods and fields of AbstractQueue are inherited.

RecursiveAction#

abstract · extends ForkJoinTask · java.util.concurrent.RecursiveAction

The methods and fields of ForkJoinTask are inherited.

RecursiveTask#

abstract · extends ForkJoinTask · java.util.concurrent.RecursiveTask

The methods and fields of ForkJoinTask are inherited.

RejectedExecutionException#

class · extends RuntimeException · java.util.concurrent.RejectedExecutionException

Constructors

new RejectedExecutionException()
new RejectedExecutionException(Throwable cause)
new RejectedExecutionException(String message)
new RejectedExecutionException(String message, Throwable cause)

Ring: new RejectedExecutionException(args) uses the constructor with the fewest parameters (at least one); new RejectedExecutionException makes the object with the constructor without parameters; the others: (new RejectedExecutionException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of RuntimeException are inherited.

RejectedExecutionHandler#

interface · java.util.concurrent.RejectedExecutionHandler

Methods

MethodRing callJava overloads
rejectedExecutionrejectedExecution(r,executor)void rejectedExecution(Runnable r, ThreadPoolExecutor executor)

RunnableFuture#

interface · java.util.concurrent.RunnableFuture

Extends: Runnable, Future

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
exceptionNowexceptionNow()Throwable exceptionNow()
isCancelledisCancelled()boolean isCancelled()
isDoneisDone()boolean isDone()
resultNowresultNow()Object resultNow()
runrun()void run()
statestate()State state()

RunnableScheduledFuture#

interface · java.util.concurrent.RunnableScheduledFuture

Extends: RunnableFuture, ScheduledFuture

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
compareTocompareTo(o)int compareTo(Object o)
exceptionNowexceptionNow()Throwable exceptionNow()
getDelaygetDelay(unit)long getDelay(TimeUnit unit)
isCancelledisCancelled()boolean isCancelled()
isDoneisDone()boolean isDone()
isPeriodicisPeriodic()boolean isPeriodic()
resultNowresultNow()Object resultNow()
runrun()void run()
statestate()State state()

ScheduledExecutorService#

interface · java.util.concurrent.ScheduledExecutorService

Extends: ExecutorService

Methods

MethodRing callJava overloads
awaitTerminationawaitTermination(timeout,unit)boolean awaitTermination(long timeout, TimeUnit unit)
closeclose()void close()
executeexecute(command)void execute(Runnable command)
invokeAllinvokeAll(tasks)
invokeAll([tasks,timeout,unit])
invokeAll([ :tasks = v, :timeout = v, :unit = v ])
List invokeAll(Collection tasks)
List invokeAll(Collection tasks, long timeout, TimeUnit unit)
invokeAnyinvokeAny(tasks)
invokeAny([tasks,timeout,unit])
invokeAny([ :tasks = v, :timeout = v, :unit = v ])
Object invokeAny(Collection tasks)
Object invokeAny(Collection tasks, long timeout, TimeUnit unit)
isShutdownisShutdown()boolean isShutdown()
isTerminatedisTerminated()boolean isTerminated()
scheduleschedule(command,delay,unit)ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit)
ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit)
scheduleAtFixedRatescheduleAtFixedRate(command,initialDelay,period,unit)ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleWithFixedDelayscheduleWithFixedDelay(command,initialDelay,delay,unit)ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
shutdownshutdown()void shutdown()
shutdownNowshutdownNow()List shutdownNow()
submitsubmit(task)
submit([task,result])
submit([ :task = v, :result = v ])
Future submit(Runnable task)
Future submit(Callable task)
Future submit(Runnable task, Object result)

ScheduledFuture#

interface · java.util.concurrent.ScheduledFuture

Extends: Delayed, Future

Methods

MethodRing callJava overloads
@@get@@get([timeout,unit])
@@get([ :timeout = v, :unit = v ])
Object get(long timeout, TimeUnit unit)
@get@get()Object get()
cancelcancel(mayInterruptIfRunning)boolean cancel(boolean mayInterruptIfRunning)
compareTocompareTo(o)int compareTo(Object o)
exceptionNowexceptionNow()Throwable exceptionNow()
getDelaygetDelay(unit)long getDelay(TimeUnit unit)
isCancelledisCancelled()boolean isCancelled()
isDoneisDone()boolean isDone()
resultNowresultNow()Object resultNow()
statestate()State state()

ScheduledThreadPoolExecutor#

class · extends ThreadPoolExecutor · java.util.concurrent.ScheduledThreadPoolExecutor

Implements: ScheduledExecutorService

Constructors

new ScheduledThreadPoolExecutor(int corePoolSize)
new ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory)
new ScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler)
new ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)

Ring: new ScheduledThreadPoolExecutor(args) uses the constructor with the fewest parameters (at least one); new ScheduledThreadPoolExecutor makes the object with the constructor without parameters; the others: (new ScheduledThreadPoolExecutor).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getContinueExistingPeriodicTasksAfterShutdownPolicygetContinueExistingPeriodicTasksAfterShutdownPolicy()boolean getContinueExistingPeriodicTasksAfterShutdownPolicy()
getExecuteExistingDelayedTasksAfterShutdownPolicygetExecuteExistingDelayedTasksAfterShutdownPolicy()boolean getExecuteExistingDelayedTasksAfterShutdownPolicy()
getRemoveOnCancelPolicygetRemoveOnCancelPolicy()boolean getRemoveOnCancelPolicy()
scheduleschedule(callable,delay,unit)ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit)
ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit)
scheduleAtFixedRatescheduleAtFixedRate(command,initialDelay,period,unit)ScheduledFuture scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleWithFixedDelayscheduleWithFixedDelay(command,initialDelay,delay,unit)ScheduledFuture scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
setContinueExistingPeriodicTasksAfterShutdownPolicysetContinueExistingPeriodicTasksAfterShutdownPolicy(value)void setContinueExistingPeriodicTasksAfterShutdownPolicy(boolean value)
setExecuteExistingDelayedTasksAfterShutdownPolicysetExecuteExistingDelayedTasksAfterShutdownPolicy(value)void setExecuteExistingDelayedTasksAfterShutdownPolicy(boolean value)
setRemoveOnCancelPolicysetRemoveOnCancelPolicy(value)void setRemoveOnCancelPolicy(boolean value)

The methods and fields of ThreadPoolExecutor are inherited.

Semaphore#

class · extends Object · java.util.concurrent.Semaphore

Implements: Serializable

Constructors

new Semaphore(int permits)
new Semaphore(int permits, boolean fair)

Ring: new Semaphore(args) uses the constructor with the fewest parameters (at least one); new Semaphore makes the object with the constructor without parameters; the others: (new Semaphore).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@acquire@acquire(permits)void acquire(int permits)
@acquireUninterruptibly@acquireUninterruptibly(permits)void acquireUninterruptibly(int permits)
@release@release(permits)void release(int permits)
@tryAcquire@tryAcquire(permits)
@tryAcquire([timeout,unit])
@tryAcquire([ :timeout = v, :unit = v ])
@tryAcquire([permits,timeout,unit])
@tryAcquire([ :permits = v, :timeout = v, :unit = v ])
boolean tryAcquire(int permits)
boolean tryAcquire(long timeout, TimeUnit unit)
boolean tryAcquire(int permits, long timeout, TimeUnit unit)
acquireacquire()void acquire()
acquireUninterruptiblyacquireUninterruptibly()void acquireUninterruptibly()
availablePermitsavailablePermits()int availablePermits()
drainPermitsdrainPermits()int drainPermits()
getQueueLengthgetQueueLength()int getQueueLength()
hasQueuedThreadshasQueuedThreads()boolean hasQueuedThreads()
isFairisFair()boolean isFair()
releaserelease()void release()
tryAcquiretryAcquire()boolean tryAcquire()

The methods and fields of Object are inherited.

StructuredTaskScope#

interface · java.util.concurrent.StructuredTaskScope

Extends: AutoCloseable

Methods

MethodRing callJava overloads
@open@open(joiner)
@open([joiner,configFunction])
@open([ :joiner = v, :configFunction = v ])
static StructuredTaskScope open(Joiner joiner)
static StructuredTaskScope open(Joiner joiner, Function configFunction)
closeclose()void close()
forkfork(task)Subtask fork(Runnable task)
Subtask fork(Callable task)
isCancelledisCancelled()boolean isCancelled()
joinjoin()Object join()
openopen()static StructuredTaskScope open()

StructuredTaskScopeConfiguration#

interface · java.util.concurrent.StructuredTaskScope$Configuration

Methods

MethodRing callJava overloads
withNamewithName(name)Configuration withName(String name)
withThreadFactorywithThreadFactory(threadFactory)Configuration withThreadFactory(ThreadFactory threadFactory)
withTimeoutwithTimeout(timeout)Configuration withTimeout(Duration timeout)

StructuredTaskScopeFailedException#

class final · extends RuntimeException · java.util.concurrent.StructuredTaskScope$FailedException

The methods and fields of RuntimeException are inherited.

StructuredTaskScopeJoiner#

interface · java.util.concurrent.StructuredTaskScope$Joiner

Methods

MethodRing callJava overloads
allSuccessfulOrThrowallSuccessfulOrThrow()static Joiner allSuccessfulOrThrow()
allUntilallUntil(isDone)static Joiner allUntil(Predicate isDone)
anySuccessfulResultOrThrowanySuccessfulResultOrThrow()static Joiner anySuccessfulResultOrThrow()
awaitAllawaitAll()static Joiner awaitAll()
awaitAllSuccessfulOrThrowawaitAllSuccessfulOrThrow()static Joiner awaitAllSuccessfulOrThrow()
onCompleteonComplete(subtask)boolean onComplete(Subtask subtask)
onForkonFork(subtask)boolean onFork(Subtask subtask)
resultresult()Object result()

StructuredTaskScopeSubtask#

interface · java.util.concurrent.StructuredTaskScope$Subtask

Extends: Supplier

Methods

MethodRing callJava overloads
@get@get()Object get()
exceptionexception()Throwable exception()
statestate()State state()

StructuredTaskScopeSubtaskState#

enum · extends Enum · java.util.concurrent.StructuredTaskScope$Subtask$State

Fields

NameTypeAccessIn Ring
UNAVAILABLEStateconstant · statico.UNAVAILABLE
SUCCESSStateconstant · statico.SUCCESS
FAILEDStateconstant · statico.FAILED

Methods

MethodRing callJava overloads
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static State valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static State[] values()

The methods and fields of Enum are inherited.

StructuredTaskScopeTimeoutException#

class final · extends RuntimeException · java.util.concurrent.StructuredTaskScope$TimeoutException

The methods and fields of RuntimeException are inherited.

StructureViolationException#

class final · extends RuntimeException · java.util.concurrent.StructureViolationException

Constructors

new StructureViolationException()
new StructureViolationException(String message)

Ring: new StructureViolationException(args) uses the constructor with the fewest parameters (at least one); new StructureViolationException makes the object with the constructor without parameters; the others: (new StructureViolationException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of RuntimeException are inherited.

SubmissionPublisher#

class · extends Object · java.util.concurrent.SubmissionPublisher

Implements: FlowPublisher, AutoCloseable

Constructors

new SubmissionPublisher()
new SubmissionPublisher(Executor executor, int maxBufferCapacity)
new SubmissionPublisher(Executor executor, int maxBufferCapacity, BiConsumer handler)

Ring: new SubmissionPublisher(args) uses the constructor with the fewest parameters (at least one); new SubmissionPublisher makes the object with the constructor without parameters; the others: (new SubmissionPublisher).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
closeclose()void close()
closeExceptionallycloseExceptionally(error)void closeExceptionally(Throwable error)
consumeconsume(consumer)CompletableFuture consume(Consumer consumer)
estimateMaximumLagestimateMaximumLag()int estimateMaximumLag()
estimateMinimumDemandestimateMinimumDemand()long estimateMinimumDemand()
getClosedExceptiongetClosedException()Throwable getClosedException()
getExecutorgetExecutor()Executor getExecutor()
getMaxBufferCapacitygetMaxBufferCapacity()int getMaxBufferCapacity()
getNumberOfSubscribersgetNumberOfSubscribers()int getNumberOfSubscribers()
getSubscribersgetSubscribers()List getSubscribers()
hasSubscribershasSubscribers()boolean hasSubscribers()
isClosedisClosed()boolean isClosed()
isSubscribedisSubscribed(subscriber)boolean isSubscribed(Subscriber subscriber)
offeroffer([item,onDrop])
offer([ :item = v, :onDrop = v ])
offer([item,timeout,unit,onDrop])
offer([ :item = v, :timeout = v, :unit = v, :onDrop = v ])
int offer(Object item, BiPredicate onDrop)
int offer(Object item, long timeout, TimeUnit unit, BiPredicate onDrop)
submitsubmit(item)int submit(Object item)
subscribesubscribe(subscriber)void subscribe(Subscriber subscriber)

The methods and fields of Object are inherited.

SynchronousQueue#

class · extends AbstractQueue · java.util.concurrent.SynchronousQueue

Implements: BlockingQueue, Serializable

Constructors

new SynchronousQueue()
new SynchronousQueue(boolean fair)

Ring: new SynchronousQueue(args) uses the constructor with the fewest parameters (at least one); new SynchronousQueue makes the object with the constructor without parameters; the others: (new SynchronousQueue).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
remainingCapacityremainingCapacity()int remainingCapacity()
taketake()Object take()

The methods and fields of AbstractQueue are inherited.

ThreadFactory#

interface · java.util.concurrent.ThreadFactory

Methods

MethodRing callJava overloads
newThreadnewThread(r)Thread newThread(Runnable r)

ThreadLocalRandom#

class final · extends Random · java.util.concurrent.ThreadLocalRandom

Methods

MethodRing callJava overloads
currentcurrent()static ThreadLocalRandom current()

The methods and fields of Random are inherited.

ThreadPoolExecutor#

class · extends AbstractExecutorService · java.util.concurrent.ThreadPoolExecutor

Constructors

new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue)
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, RejectedExecutionHandler handler)
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory)
new ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)

Ring: new ThreadPoolExecutor(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutor makes the object with the constructor without parameters; the others: (new ThreadPoolExecutor).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
allowCoreThreadTimeOutallowCoreThreadTimeOut(value)void allowCoreThreadTimeOut(boolean value)
allowsCoreThreadTimeOutallowsCoreThreadTimeOut()boolean allowsCoreThreadTimeOut()
getActiveCountgetActiveCount()int getActiveCount()
getCompletedTaskCountgetCompletedTaskCount()long getCompletedTaskCount()
getCorePoolSizegetCorePoolSize()int getCorePoolSize()
getKeepAliveTimegetKeepAliveTime(unit)long getKeepAliveTime(TimeUnit unit)
getLargestPoolSizegetLargestPoolSize()int getLargestPoolSize()
getMaximumPoolSizegetMaximumPoolSize()int getMaximumPoolSize()
getPoolSizegetPoolSize()int getPoolSize()
getQueuegetQueue()BlockingQueue getQueue()
getRejectedExecutionHandlergetRejectedExecutionHandler()RejectedExecutionHandler getRejectedExecutionHandler()
getTaskCountgetTaskCount()long getTaskCount()
getThreadFactorygetThreadFactory()ThreadFactory getThreadFactory()
isTerminatingisTerminating()boolean isTerminating()
prestartAllCoreThreadsprestartAllCoreThreads()int prestartAllCoreThreads()
prestartCoreThreadprestartCoreThread()boolean prestartCoreThread()
purgepurge()void purge()
removeremove(task)boolean remove(Runnable task)
setCorePoolSizesetCorePoolSize(corePoolSize)void setCorePoolSize(int corePoolSize)
setKeepAliveTimesetKeepAliveTime(time,unit)void setKeepAliveTime(long time, TimeUnit unit)
setMaximumPoolSizesetMaximumPoolSize(maximumPoolSize)void setMaximumPoolSize(int maximumPoolSize)
setRejectedExecutionHandlersetRejectedExecutionHandler(handler)void setRejectedExecutionHandler(RejectedExecutionHandler handler)
setThreadFactorysetThreadFactory(threadFactory)void setThreadFactory(ThreadFactory threadFactory)

The methods and fields of AbstractExecutorService are inherited.

ThreadPoolExecutorAbortPolicy#

class · extends Object · java.util.concurrent.ThreadPoolExecutor$AbortPolicy

Implements: RejectedExecutionHandler

Constructors

new ThreadPoolExecutorAbortPolicy()

Ring: new ThreadPoolExecutorAbortPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorAbortPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorAbortPolicy).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
rejectedExecutionrejectedExecution(r,e)void rejectedExecution(Runnable r, ThreadPoolExecutor e)

The methods and fields of Object are inherited.

ThreadPoolExecutorCallerRunsPolicy#

class · extends Object · java.util.concurrent.ThreadPoolExecutor$CallerRunsPolicy

Implements: RejectedExecutionHandler

Constructors

new ThreadPoolExecutorCallerRunsPolicy()

Ring: new ThreadPoolExecutorCallerRunsPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorCallerRunsPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorCallerRunsPolicy).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
rejectedExecutionrejectedExecution(r,e)void rejectedExecution(Runnable r, ThreadPoolExecutor e)

The methods and fields of Object are inherited.

ThreadPoolExecutorDiscardOldestPolicy#

class · extends Object · java.util.concurrent.ThreadPoolExecutor$DiscardOldestPolicy

Implements: RejectedExecutionHandler

Constructors

new ThreadPoolExecutorDiscardOldestPolicy()

Ring: new ThreadPoolExecutorDiscardOldestPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorDiscardOldestPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorDiscardOldestPolicy).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
rejectedExecutionrejectedExecution(r,e)void rejectedExecution(Runnable r, ThreadPoolExecutor e)

The methods and fields of Object are inherited.

ThreadPoolExecutorDiscardPolicy#

class · extends Object · java.util.concurrent.ThreadPoolExecutor$DiscardPolicy

Implements: RejectedExecutionHandler

Constructors

new ThreadPoolExecutorDiscardPolicy()

Ring: new ThreadPoolExecutorDiscardPolicy(args) uses the constructor with the fewest parameters (at least one); new ThreadPoolExecutorDiscardPolicy makes the object with the constructor without parameters; the others: (new ThreadPoolExecutorDiscardPolicy).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
rejectedExecutionrejectedExecution(r,e)void rejectedExecution(Runnable r, ThreadPoolExecutor e)

The methods and fields of Object are inherited.

TimeoutException#

class · extends Exception · java.util.concurrent.TimeoutException

Constructors

new TimeoutException()
new TimeoutException(String message)

Ring: new TimeoutException(args) uses the constructor with the fewest parameters (at least one); new TimeoutException makes the object with the constructor without parameters; the others: (new TimeoutException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

TimeUnit#

enum · extends Enum · java.util.concurrent.TimeUnit

Fields

NameTypeAccessIn Ring
NANOSECONDSTimeUnitconstant · statico.NANOSECONDS
MICROSECONDSTimeUnitconstant · statico.MICROSECONDS
MILLISECONDSTimeUnitconstant · statico.MILLISECONDS
SECONDSTimeUnitconstant · statico.SECONDS
MINUTESTimeUnitconstant · statico.MINUTES
HOURSTimeUnitconstant · statico.HOURS
DAYSTimeUnitconstant · statico.DAYS

Methods

MethodRing callJava overloads
convertconvert(duration)
convert([sourceDuration,sourceUnit])
convert([ :sourceDuration = v, :sourceUnit = v ])
long convert(Duration duration)
long convert(long sourceDuration, TimeUnit sourceUnit)
ofof(chronoUnit)static TimeUnit of(ChronoUnit chronoUnit)
sleepsleep(timeout)void sleep(long timeout)
timedJointimedJoin(thread,timeout)void timedJoin(Thread thread, long timeout)
timedWaittimedWait(obj,timeout)void timedWait(Object obj, long timeout)
toChronoUnittoChronoUnit()ChronoUnit toChronoUnit()
toDaystoDays(duration)long toDays(long duration)
toHourstoHours(duration)long toHours(long duration)
toMicrostoMicros(duration)long toMicros(long duration)
toMillistoMillis(duration)long toMillis(long duration)
toMinutestoMinutes(duration)long toMinutes(long duration)
toNanostoNanos(duration)long toNanos(long duration)
toSecondstoSeconds(duration)long toSeconds(long duration)
valueOfvalueOf(p1)
valueOf([enumClass,name])
valueOf([ :enumClass = v, :name = v ])
static TimeUnit valueOf(String p1)
static Enum valueOf(Class enumClass, String name)
valuesvalues()static TimeUnit[] values()

The methods and fields of Enum are inherited.

TransferQueue#

interface · java.util.concurrent.TransferQueue

Extends: BlockingQueue

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(Consumer action)
@poll@poll([timeout,unit])
@poll([ :timeout = v, :unit = v ])
Object poll(long timeout, TimeUnit unit)
@put@put(e)void put(Object e)
@remove@remove(o)boolean remove(Object o)
@toArray@toArray(a)Object[] toArray(Object[] a)
Object[] toArray(IntFunction generator)
addadd(e)boolean add(Object e)
addAlladdAll(c)boolean addAll(Collection c)
clearclear()void clear()
containscontains(o)boolean contains(Object o)
containsAllcontainsAll(c)boolean containsAll(Collection c)
drainTodrainTo(c)
drainTo([c,maxElements])
drainTo([ :c = v, :maxElements = v ])
int drainTo(Collection c)
int drainTo(Collection c, int maxElements)
elementelement()Object element()
equalsequals(o)boolean equals(Object o)
getWaitingConsumerCountgetWaitingConsumerCount()int getWaitingConsumerCount()
hashCodehashCode()int hashCode()
hasWaitingConsumerhasWaitingConsumer()boolean hasWaitingConsumer()
isEmptyisEmpty()boolean isEmpty()
iteratoriterator()Iterator iterator()
offeroffer(e)
offer([e,timeout,unit])
offer([ :e = v, :timeout = v, :unit = v ])
boolean offer(Object e)
boolean offer(Object e, long timeout, TimeUnit unit)
parallelStreamparallelStream()Stream parallelStream()
peekpeek()Object peek()
pollpoll()Object poll()
remainingCapacityremainingCapacity()int remainingCapacity()
removeremove()Object remove()
removeAllremoveAll(c)boolean removeAll(Collection c)
removeIfremoveIf(filter)boolean removeIf(Predicate filter)
retainAllretainAll(c)boolean retainAll(Collection c)
sizesize()int size()
spliteratorspliterator()Spliterator spliterator()
streamstream()Stream stream()
taketake()Object take()
toArraytoArray()Object[] toArray()
transfertransfer(e)void transfer(Object e)
tryTransfertryTransfer(e)
tryTransfer([e,timeout,unit])
tryTransfer([ :e = v, :timeout = v, :unit = v ])
boolean tryTransfer(Object e)
boolean tryTransfer(Object e, long timeout, TimeUnit unit)
RingJava - use Java classes and methods from Ring programs.