|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base class for all synchronizatin primitives.
Semantic of waitFor
and reset
methods
for particular primitives explained in the descripotion of these proimitives
Field Summary | |
static int |
DEFAULT_RANK
Rank with which requsts will be queued if rank was not explicitely specified. |
Method Summary | |
boolean |
alreadyExists()
Primitive returned by createXXX method already exists
This method should be call immediatly after createXXX
to check if new primitive was created or existed one was returned. |
void |
close()
Close primitive. |
java.lang.String |
getName()
Get primitive name. |
void |
priorityWait(int rank)
Priority wait until state of primitive is switched. |
boolean |
priorityWait(int rank,
long timeout)
Priority wait until state of primitive is switched with timeout. |
void |
reset()
Reset primitive. |
void |
waitFor()
Wait until state of primitive is switched. |
boolean |
waitFor(long timeout)
Wait until state of primitive is switched with timeout. |
Field Detail |
public static final int DEFAULT_RANK
Method Detail |
public boolean alreadyExists()
createXXX
method already exists
This method should be call immediatly after createXXX
to check if new primitive was created or existed one was returned.
true
if createXXX
method doesn't
create new primitivepublic void close() throws JIPCException, java.io.IOException
JIPCException
java.io.IOException
public java.lang.String getName()
public void priorityWait(int rank) throws JIPCException, java.io.IOException
rank
value will be satisfied first.
Semantic of this method depends on particular primitive type and is explained
in specification of each primitive.
rank
- processes will be placed in wait queue in the order of increasing
rank value and in the same order will be taken from the queue.
JIPCException
java.io.IOException
public boolean priorityWait(int rank, long timeout) throws JIPCException, java.io.IOException
rank
value will be satisfied first.
Semantic of this method depends on particular primitive type and is
explained in specification of each primitive.
rank
- processes will be placed in wait queue in the order of increasing
rank value and in the same order will be taken from the queue.timeout
- operation timeout in millisoconds
false
if timeout is expired before primitive
state is changed
JIPCException
java.io.IOException
public void reset() throws JIPCException, java.io.IOException
JIPCException
java.io.IOException
public void waitFor() throws JIPCException, java.io.IOException
JIPCException
java.io.IOException
public boolean waitFor(long timeout) throws JIPCException, java.io.IOException
timeout
- operation timeout in millisoconds
false
if timeout is expired before primitive
state is changed
JIPCException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |