|
jGCS Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jgcs.adapters.BlockingReceiver
public class BlockingReceiver
This adapter implements a receive() method on top of the given DataSession.
| Constructor Summary | |
|---|---|
BlockingReceiver(DataSession session)
This constructor registers it self as a listener for message and exception listeners. |
|
| Method Summary | |
|---|---|
Message |
receive()
Receives a message for the group. |
Message |
receive(long timeout,
java.lang.Object context)
Receives a message for the group. |
Message |
receive(java.lang.Object context)
Receives a message for the group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockingReceiver(DataSession session)
throws ClosedSessionException
session - the data session to be used.
ClosedSessionException| Method Detail |
|---|
public Message receive(java.lang.Object context)
throws JGCSException
context - the context to be passed to the group communication.
JGCSException
public Message receive()
throws JGCSException
JGCSException
public Message receive(long timeout,
java.lang.Object context)
throws JGCSException
context - the context to be passed to the group communication.timeout - the time to block (in milliseconds)
JGCSException
|
jGCS Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||