Lines 17-22
Link Here
|
17 |
* David McKnight (IBM) [222163][dstore] Special characters from old server are not restored |
17 |
* David McKnight (IBM) [222163][dstore] Special characters from old server are not restored |
18 |
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability |
18 |
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability |
19 |
* David McKnight (IBM) [246826][dstore] KeepAlive does not work correctly |
19 |
* David McKnight (IBM) [246826][dstore] KeepAlive does not work correctly |
|
|
20 |
* Noriaki Takatsu (IBM) [289234][multithread][api] Reset and Restart KeepAliveRequestThread |
20 |
*******************************************************************************/ |
21 |
*******************************************************************************/ |
21 |
|
22 |
|
22 |
package org.eclipse.dstore.internal.core.util; |
23 |
package org.eclipse.dstore.internal.core.util; |
Lines 1055-1060
Link Here
|
1055 |
} |
1056 |
} |
1056 |
} |
1057 |
} |
1057 |
|
1058 |
|
|
|
1059 |
/** |
1060 |
* Interrupt the current KeepAliveRequest thread and restart |
1061 |
* the KeepAliveRequest thread with the specified timeout |
1062 |
* |
1063 |
* @param timeout when the KeepAliveRequest thread is expired |
1064 |
* @param socket to wait for |
1065 |
*/ |
1066 |
public void resetKeepAliveRequest(long timeout, Socket socket) { |
1067 |
if (_kart != null && _kart.isAlive()){ |
1068 |
_kart.interrupt(); |
1069 |
} |
1070 |
_kart = new KeepAliveRequestThread(timeout, socket); |
1071 |
_kart.start(); |
1072 |
} |
1073 |
|
1058 |
public class KeepAliveRequestThread extends Thread |
1074 |
public class KeepAliveRequestThread extends Thread |
1059 |
{ |
1075 |
{ |
1060 |
private long _timeout; |
1076 |
private long _timeout; |