if (timeout <= 0)
{
while (!stopped && (retval == null))
{
RspList rsp = disp.callRemoteMethods(null, "_remove", null, remove_signature, GroupRequest.GET_ALL, internal_timeout);
Vector results = rsp.getResults();
if (results.size() > 0)
{
retval = results.elementAt(0);
if (logger.isDebugEnabled())
{
checkResult(rsp, retval);
}
}
if (retval == null)
{
try
{
synchronized (mutex)
{
mutex.wait();
}
}
catch (InterruptedException e)
{
}
}
}
}
else
{
while (((System.currentTimeMillis() - start) < timeout) && !stopped && (retval == null))
{
RspList rsp = disp.callRemoteMethods(null, "_remove", null, remove_signature, GroupRequest.GET_ALL, internal_timeout);
Vector results = rsp.getResults();
if (results.size() > 0)
{
retval = results.elementAt(0);