jgroup.relacs.rmi
Class IIDFactory

java.lang.Object
  extended by jgroup.relacs.rmi.IIDFactory

public class IIDFactory
extends java.lang.Object

This class is a factory for invocation identifiers. It uses a sequence number to generate unique identifiers, and keeps track of invocation identifiers for which a response has been received. This information is used to generate acknowledgement information sent to servers in order that they can remove replies from their tables.

Since:
Jgroup 0.8
Author:
Alberto Montresor

Constructor Summary
IIDFactory()
          Initializes a new IIDFactory object by setting the sequence number to 0 and creating an empty replies list.
 
Method Summary
 void addReply(IID id)
          Adds the given invocation identifier to the set of identifiers for which a reply has been received.
 IID getId()
          Creates a new invocation identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIDFactory

public IIDFactory()
Initializes a new IIDFactory object by setting the sequence number to 0 and creating an empty replies list. Ack information is also set to 0.

Method Detail

getId

public IID getId()
Creates a new invocation identifier. It increases the sequence number and constructs a new IIDImpl object with the new sequence number; acknowledgement information is piggybacked in the identifier.


addReply

public void addReply(IID id)
Adds the given invocation identifier to the set of identifiers for which a reply has been received.



Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.