Name
BrokenBarrierException
Synopsis
An
exception
of this type is thrown when a thread calls
CyclicBarrier.await( )
on a broken barrier, or
when the barrier is broken while a thread is waiting. A
CyclicBarrier
enters a broken state when one of
the waiting threads is interrupted or times out.
Figure 16-73. java.util.concurrent.BrokenBarrierException
public class BrokenBarrierException extends Exception { // Public Constructors public BrokenBarrierException( ); public BrokenBarrierException(String message); }
Thrown By
CyclicBarrier.await( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.