Package nl.harm27.obs.websocket.sender
Class RequestSender
- java.lang.Object
-
- nl.harm27.obs.websocket.sender.RequestSender
-
- Direct Known Subclasses:
GeneralRequestSender
,MediaControlRequestSender
,OutputsRequestSender
,ProfilesRequestSender
,RecordingRequestSender
,ReplayBufferRequestSender
,SceneCollectionsRequestSender
,SceneItemsRequestSender
,ScenesRequestSender
,SourcesRequestSender
,StreamingRequestSender
,StudioModeRequestSender
,TransitionsRequestSender
,VirtualCamRequestSender
public abstract class RequestSender extends Object
-
-
Constructor Summary
Constructors Constructor Description RequestSender(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
batchMessage(BaseRequest request)
protected String
getNewMessageId()
protected void
sendMessage(BaseRequest request, Consumer<BaseResponse> responseConsumer)
-
-
-
Constructor Detail
-
RequestSender
public RequestSender(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getNewMessageId
protected String getNewMessageId()
-
sendMessage
protected void sendMessage(BaseRequest request, Consumer<BaseResponse> responseConsumer)
-
batchMessage
protected void batchMessage(BaseRequest request)
-
-