Issue #847 - deprecate asyncWriteTimeout in the jetty websocket api

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-02-21 14:58:19 +11:00
parent 9325a5bc16
commit b138ce55bb
2 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,7 @@ public class WebSocketPolicy
* *
* @return the timeout for async write operations. negative values indicate disabled timeout. * @return the timeout for async write operations. negative values indicate disabled timeout.
*/ */
@Deprecated
public long getAsyncWriteTimeout() public long getAsyncWriteTimeout()
{ {
return asyncWriteTimeout; return asyncWriteTimeout;

View File

@ -427,6 +427,7 @@ public class WebSocketClient extends ContainerLifeCycle implements WebSocketCont
* *
* @return number of milliseconds for timeout of an attempted write operation * @return number of milliseconds for timeout of an attempted write operation
*/ */
@Deprecated
public long getAsyncWriteTimeout() public long getAsyncWriteTimeout()
{ {
return getPolicy().getAsyncWriteTimeout(); return getPolicy().getAsyncWriteTimeout();