org.sapia.ubik.rmi.server.command
Class ResponseQueue

java.lang.Object
  extended by org.sapia.ubik.rmi.server.command.ResponseQueue

public class ResponseQueue
extends java.lang.Object

This class implements a client-side response queue that internally keeps response locks.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 ResponseLock createResponseLock()
          Creates a response lock and returns it (internally maps the response lock to an unique identifier which is also assigned to the lock.
static ResponseQueue getInstance()
          Returns this queue class' singleton.
 void onResponses(java.util.List responses)
          This method is called to notify this queue about incoming responses.
 void shutdown(long timeout)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createResponseLock

public ResponseLock createResponseLock()
Creates a response lock and returns it (internally maps the response lock to an unique identifier which is also assigned to the lock.

Returns:
a ResponseLock.

onResponses

public void onResponses(java.util.List responses)
This method is called to notify this queue about incoming responses.

Parameters:
responses - a List of Response instances.

shutdown

public void shutdown(long timeout)
              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

size

public int size()

getInstance

public static final ResponseQueue getInstance()
Returns this queue class' singleton.

Returns:
a ResponseQueue.


Copyright © 2010 Sapia OSS. All Rights Reserved.