public class RendezvousBarrier extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
count |
static int |
DEFAULT_TIMEOUT |
protected LoggerFacade |
logger |
protected String |
name |
protected int |
parties |
protected long |
timeout |
Constructor and Description |
---|
RendezvousBarrier(String name,
int parties,
long timeout,
LoggerFacade logger) |
RendezvousBarrier(String name,
LoggerFacade logger) |
RendezvousBarrier(String name,
long timeout,
LoggerFacade logger) |
public static final int DEFAULT_TIMEOUT
protected final int parties
protected int count
protected long timeout
protected LoggerFacade logger
public RendezvousBarrier(String name, LoggerFacade logger)
public RendezvousBarrier(String name, long timeout, LoggerFacade logger)
public RendezvousBarrier(String name, int parties, long timeout, LoggerFacade logger)
public void call()
meet()
, but does not not let you wait.public void meet() throws InterruptedException
InterruptedException
- if the current thread is interrupted while waitingpublic void reset()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.