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.


Constructor Index

 o SyncCall(Transport)

Method Index

 o Send(Object, byte[], boolean, long)
 o SendGetFirst(byte[], long)
 o SendGetN(byte[], int, long)

Constructors

 o SyncCall
 public SyncCall(Transport t)

Methods

 o Send
 public Message Send(Object dest,
                     byte msg[],
                     boolean oneway,
                     long timeout) throws Exception
 o SendGetFirst
 public Message SendGetFirst(byte msg[],
                             long timeout) throws Exception
 o SendGetN
 public Vector SendGetN(byte msg[],
                        int expected_responses,
                        long timeout) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index