Class Sleep.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.general.Sleep.Builder
-
- Enclosing class:
- Sleep
public static class Sleep.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sleep.Request
batchMessage()
Batch the message to the OBS Studio instance.int
getSleepMillis()
Delay in milliseconds to wait before continuing.void
sendMessage(Consumer<Sleep.Response> consumer)
Send the message to the OBS Studio instance.void
setSleepMillis(int sleepMillis)
Delay in milliseconds to wait before continuing.-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getSleepMillis
public int getSleepMillis()
Delay in milliseconds to wait before continuing.
-
setSleepMillis
public void setSleepMillis(int sleepMillis)
Delay in milliseconds to wait before continuing.
-
sendMessage
public void sendMessage(Consumer<Sleep.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public Sleep.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-