Package discord4j.gateway
Class GatewayReactorResources
- java.lang.Object
-
- discord4j.common.ReactorResources
-
- discord4j.gateway.GatewayReactorResources
-
public class GatewayReactorResources extends ReactorResources
Provides an extra level of configuration forReactorResources
, tailored for the Gateway operations.Allows customizing the
Scheduler
used to send gateway payloads.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class discord4j.common.ReactorResources
ReactorResources.Builder
-
-
Field Summary
Fields Modifier and Type Field Description static Supplier<Scheduler>
DEFAULT_PAYLOAD_SENDER_SCHEDULER
-
Fields inherited from class discord4j.common.ReactorResources
DEFAULT_BLOCKING_TASK_SCHEDULER, DEFAULT_HTTP_CLIENT, DEFAULT_TIMER_TASK_SCHEDULER
-
-
Constructor Summary
Constructors Constructor Description GatewayReactorResources(ReactorResources parent)
GatewayReactorResources(ReactorResources parent, Scheduler payloadSenderScheduler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GatewayReactorResources
create()
Scheduler
getPayloadSenderScheduler()
-
Methods inherited from class discord4j.common.ReactorResources
builder, getBlockingTaskScheduler, getHttpClient, getTimerTaskScheduler, newHttpClient
-
-
-
-
Constructor Detail
-
GatewayReactorResources
public GatewayReactorResources(ReactorResources parent)
-
GatewayReactorResources
public GatewayReactorResources(ReactorResources parent, Scheduler payloadSenderScheduler)
-
-
Method Detail
-
create
public static GatewayReactorResources create()
-
getPayloadSenderScheduler
public Scheduler getPayloadSenderScheduler()
-
-