1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[289234][multithread][api] Reset and Restart KeepAliveRequestThread

This commit is contained in:
David McKnight 2010-12-16 14:31:29 +00:00
parent d372999c56
commit 05df4315e0
2 changed files with 12 additions and 22 deletions

View file

@ -119,17 +119,4 @@ public class ServerReceiver extends Receiver
System.out.println(IOe);
}
}
/**
* Interrupt the current KeepAliveRequest thread and restart
* the KeepAliveRequest thread with the specified timeout
*
* @param timeout when the KeepAliveRequest thread is expired
* @since 3.3
*/
public void resetKeepAliveRequest(long timeout)
{
xmlParser().resetKeepAliveRequest(timeout, socket());
}
}

View file

@ -186,15 +186,6 @@ public abstract class Receiver extends SecuredThread implements IDataStorePrefer
return _socket;
}
/**
* Returns the associated xml parser
* @return the xml parser
* @since 3.3
*/
public XMLparser xmlParser()
{
return _xmlParser;
}
/**
* Implemented to provide a means of handling received input
@ -228,4 +219,16 @@ public abstract class Receiver extends SecuredThread implements IDataStorePrefer
}
}
/**
* Interrupt the current KeepAliveRequest thread and restart
* the KeepAliveRequest thread with the specified timeout
*
* @param timeout when the KeepAliveRequest thread is expired
* @since 3.3
*/
public void resetKeepAliveRequest(long timeout)
{
_xmlParser.resetKeepAliveRequest(timeout, socket());
}
}