All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.SyncCall
java.lang.Object
|
+----JavaGroups.SyncCall
- public class SyncCall
- extends Object
SyncCall objects are intended to be used on objects that implement the Transport
interface. They allow to emulate synchronous message exchange on top of an
asynchronous message transport, that is the sending
of a message to a group (or a single member) and the reception of the result in one step.
When sending messages to a group, there might be none, one or more responses. The SyncCall
interface allows to specify how many responses should be returned (one, n, or all).
Additionally, a timeout defines the maximum amount of time to wait for the
arrival of a message.
-
SyncCall(Transport)
-
-
Send(Object, byte[], boolean, long)
-
-
SendGetFirst(byte[], long)
-
-
SendGetN(byte[], int, long)
-
SyncCall
public SyncCall(Transport t)
Send
public Message Send(Object dest,
byte msg[],
boolean oneway,
long timeout) throws Exception
SendGetFirst
public Message SendGetFirst(byte msg[],
long timeout) throws Exception
SendGetN
public Vector SendGetN(byte msg[],
int expected_responses,
long timeout) throws Exception
All Packages Class Hierarchy This Package Previous Next Index