Java java.util.concurrent Phaser fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent Phaser fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent Phaser.

The text is from its open source code.

Constructor

Phaser()
Creates a new phaser with no initially registered parties, no parent, and initial phase number 0.
Phaser(int parties)
Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0.
Phaser(Phaser parent)
Equivalent to #Phaser(Phaser,int) Phaser(parent, 0) .

Method

intarriveAndAwaitAdvance()
Arrives at this phaser and awaits others.
intarriveAndDeregister()
Arrives at this phaser and deregisters from it without waiting for others to arrive.
intbulkRegister(int parties)
Adds the given number of new unarrived parties to this phaser.
voidforceTermination()
Forces this phaser to enter termination state.
booleanisTerminated()
Returns true if this phaser has been terminated.
intregister()
Adds a new unarrived party to this phaser.