public class Rendezvous extends Object
Modifier and Type | Class | Description |
---|---|---|
class |
Rendezvous.Counter |
class encapsulating state for a specific rendezvous
|
Constructor | Description |
---|---|
Rendezvous(int expected) |
|
Rendezvous(int expected,
boolean rejoinable) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
delete() |
delete this rendezvous causing any waiting threads to return -1 form the rendezvous call.
|
int |
getArrived() |
retrieve the number of threads waiting at the rendezvous or -1 if the rendezvous has
been deleted
|
int |
getExpected() |
|
boolean |
needsRemove() |
check if the rendezvous has completed but has not yet been removed
|
int |
rendezvous(long millis) |
enter this rendezvous.
|
void |
setRemoved() |
mark a completed rendezvous to indicate that it has been removed
|
public Rendezvous(int expected)
public Rendezvous(int expected, boolean rejoinable)
public int rendezvous(long millis)
millis
- how long to wait (wait forever if 0)public boolean delete()
public int getExpected()
public int getArrived()
public boolean needsRemove()
public void setRemoved()
Copyright © 2018. All rights reserved.