mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-12 19:45:22 +02:00
[289234][multithread][api] Reset and Restart KeepAliveRequestThread
This commit is contained in:
parent
d372999c56
commit
05df4315e0
2 changed files with 12 additions and 22 deletions
|
@ -119,17 +119,4 @@ public class ServerReceiver extends Receiver
|
||||||
System.out.println(IOe);
|
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());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,15 +186,6 @@ public abstract class Receiver extends SecuredThread implements IDataStorePrefer
|
||||||
return _socket;
|
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
|
* 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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue