Package com.mewna.catnip.util
Class ReentrantLockWebSocket
java.lang.Object
com.mewna.catnip.util.ReentrantLockWebSocket
- All Implemented Interfaces:
WebSocket
- Since:
- 7/26/19.
- Author:
- AdrianTodt
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.net.http.WebSocket
WebSocket.Builder, WebSocket.Listener
-
Field Summary
Fields inherited from interface java.net.http.WebSocket
NORMAL_CLOSURE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
boolean
boolean
void
request
(long n) sendBinary
(ByteBuffer data, boolean last) sendPing
(ByteBuffer message) sendPong
(ByteBuffer message) sendText
(CharSequence data, boolean last)
-
Constructor Details
-
ReentrantLockWebSocket
-
-
Method Details
-
sendText
-
sendBinary
- Specified by:
sendBinary
in interfaceWebSocket
-
sendPing
-
sendPong
-
sendClose
-
request
public void request(long n) -
getSubprotocol
- Specified by:
getSubprotocol
in interfaceWebSocket
-
isOutputClosed
public boolean isOutputClosed()- Specified by:
isOutputClosed
in interfaceWebSocket
-
isInputClosed
public boolean isInputClosed()- Specified by:
isInputClosed
in interfaceWebSocket
-
abort
public void abort()
-