rename writeIdleTimeout to writeTimeout for javax websockets
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
bb65167549
commit
edcaa4eda7
|
@ -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
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue