What Does Register Mean In Phaser
Java Phaser register() Method
The register() method of Phaser class is used to add together the new un-arrived party in the phaser. This method generates no effect and returns the negative value if the phasor is terminated.
Syntax
Return
Information technology returns the phase number of registered parties.
Throws
IllegalStateException - this Exception is thrown when the number of registered parties is more.
Example 1
Test information technology NowOutput:
Phaser Object is annals... Initial Phase count is 0 Thread-0 arrived
Example 2
Test information technology NowOutput:
Phaser Object is register... Initial Phase count is 0 Thread is sleeping Thread-0 arrived Thread-2 arrived Final Phase count after arrival of Thread is 1 Thread-3 arrived Thread-1 arrived
For Videos Join Our Youtube Channel: Join Now
Feedback
- Transport your Feedback to [e-mail protected]
Help Others, Please Share
Source: https://www.javatpoint.com/java-phaser-register-method
Posted by: wilsonsawran56.blogspot.com
0 Response to "What Does Register Mean In Phaser"
Post a Comment