rename writeIdleTimeout to writeTimeout for javax websockets

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2019-06-05 01:48:26 +10:00
parent bb65167549
commit edcaa4eda7
2 changed files with 4 additions and 4 deletions

View File

@ -50,13 +50,13 @@ public class JavaxWebSocketAsyncRemote extends JavaxWebSocketRemoteEndpoint impl
@Override @Override
public long getSendTimeout() public long getSendTimeout()
{ {
return getWriteIdleTimeout(); return getWriteTimeout();
} }
@Override @Override
public void setSendTimeout(long timeoutmillis) public void setSendTimeout(long timeoutmillis)
{ {
setWriteIdleTimeout(timeoutmillis); setWriteTimeout(timeoutmillis);
} }
@Override @Override

View File

@ -97,12 +97,12 @@ public class JavaxWebSocketRemoteEndpoint implements javax.websocket.RemoteEndpo
coreSession.setIdleTimeout(Duration.ofMillis(ms)); coreSession.setIdleTimeout(Duration.ofMillis(ms));
} }
public long getWriteIdleTimeout() public long getWriteTimeout()
{ {
return coreSession.getWriteTimeout().toMillis(); return coreSession.getWriteTimeout().toMillis();
} }
public void setWriteIdleTimeout(long ms) public void setWriteTimeout(long ms)
{ {
coreSession.setWriteTimeout(Duration.ofMillis(ms)); coreSession.setWriteTimeout(Duration.ofMillis(ms));
} }