Class WebSocketCompleteMessage
java.lang.Object
ch.nolix.base.net.websocket.WebSocketCompleteMessage
- All Implemented Interfaces:
CompletenessRequestable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketCompleteMessagefromIsOpenFunctionAndInputStreamAndControlFrameTaker(BooleanSupplier isOpenFunction, InputStream inputStream, Consumer<WebSocketFrame> controlFrameTaker) byte[]booleanMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CompletenessRequestable
isIncomplete
-
Method Details
-
fromIsOpenFunctionAndInputStreamAndControlFrameTaker
public static WebSocketCompleteMessage fromIsOpenFunctionAndInputStreamAndControlFrameTaker(BooleanSupplier isOpenFunction, InputStream inputStream, Consumer<WebSocketFrame> controlFrameTaker) -
getMessage
-
getMessageAsByteArray
public byte[] getMessageAsByteArray() -
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceCompletenessRequestable- Returns:
- true if the current
CompletenessRequestableis complete, false otherwise.
-