Skip navigation links
A B C D E F G H J K L N R S T U V 

A

ABNORMAL_CLOSE - Static variable in class discord4j.common.close.CloseStatus
 
APPLICATION_NAME - Static variable in class discord4j.common.GitProperties
 
APPLICATION_URL - Static variable in class discord4j.common.GitProperties
 
APPLICATION_VERSION - Static variable in class discord4j.common.GitProperties
Use it on the properties given by GitProperties.getProperties() to get project version captured at build time.
apply(Publisher<T>) - Method in class discord4j.common.operator.RateLimitOperator
 

B

Beta - Annotation Type in discord4j.common.annotations
A feature in beta state, API signature may change between releases.
blockingTaskScheduler(Scheduler) - Method in class discord4j.common.ReactorResources.Builder
Sets the Scheduler to use for potentially blocking tasks.
build() - Method in class discord4j.common.ReactorResources.Builder
Create the ReactorResources.
build() - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
builder() - Static method in class discord4j.common.ReactorResources
 
Builder() - Constructor for class discord4j.common.ReactorResources.Builder
 
builder() - Static method in class discord4j.common.retry.ReconnectOptions
 
Builder() - Constructor for class discord4j.common.retry.ReconnectOptions.Builder
 

C

clear() - Method in class discord4j.common.retry.ReconnectContext
Clear the attempt count, treating further calls to ReconnectContext.next() as brand new retry context.
clearContext() - Static method in class discord4j.common.LogUtil
 
CloseException - Exception in discord4j.common.close
Unchecked exception thrown when closing a websocket session, expectedly or not.
CloseException(CloseStatus, Context) - Constructor for exception discord4j.common.close.CloseException
Create a CloseException with the given status and Reactor context.
CloseException(CloseStatus, Context, Throwable) - Constructor for exception discord4j.common.close.CloseException
Create a CloseException with the given status, Reactor context and cause.
CloseStatus - Class in discord4j.common.close
Container for WebSocket "close" status codes and reasons.
CloseStatus(int, String) - Constructor for class discord4j.common.close.CloseStatus
Create a new CloseStatus instance.
create() - Static method in class discord4j.common.ReactorResources
 
create() - Static method in class discord4j.common.retry.ReconnectOptions
 

D

DEFAULT_BLOCKING_TASK_SCHEDULER - Static variable in class discord4j.common.ReactorResources
 
DEFAULT_HTTP_CLIENT - Static variable in class discord4j.common.ReactorResources
 
DEFAULT_TIMER_TASK_SCHEDULER - Static variable in class discord4j.common.ReactorResources
 
DisconnectBehavior - Class in discord4j.common.close
Encapsulates a strategy to deal with the closing and release of a resource.
DisconnectBehavior.Action - Enum in discord4j.common.close
The action to trigger to close a resource.
discord4j.common - package discord4j.common
Common classes and utilities used across modules.
discord4j.common.annotations - package discord4j.common.annotations
Common annotations used across modules.
discord4j.common.close - package discord4j.common.close
Utility classes to handle closing behavior.
discord4j.common.jackson - package discord4j.common.jackson
 
discord4j.common.operator - package discord4j.common.operator
 
discord4j.common.retry - package discord4j.common.retry
 

E

Experimental - Annotation Type in discord4j.common.annotations
An experimental feature that can be removed or have signature and behavior changes between releases.

F

format(Context, String) - Static method in class discord4j.common.LogUtil
Format a message by unwrapping certain Context values as metadata, and if they exist, prepend them to the given message.
formatValue(Object, int) - Static method in class discord4j.common.LogUtil
Format a given Object to a String, optionally limiting their length.

G

getAction() - Method in class discord4j.common.close.DisconnectBehavior
Returns the action to perform while closing a resource.
getAttempts() - Method in class discord4j.common.retry.ReconnectContext
 
getBackoff() - Method in class discord4j.common.retry.ReconnectOptions
Retrieve the backoff function used for retrying.
getBackoffScheduler() - Method in class discord4j.common.retry.ReconnectOptions
Returns a scheduler provided every reconnect attempt, as backoff delay.
getBlockingTaskScheduler() - Method in class discord4j.common.ReactorResources
Get the Scheduler configured by this provider to be used in blocking tasks.
getCause() - Method in class discord4j.common.close.DisconnectBehavior
Returns the cause that triggered this close intent.
getCloseStatus() - Method in exception discord4j.common.close.CloseException
Return the underlying CloseStatus that triggered this exception.
getCode() - Method in exception discord4j.common.close.CloseException
Return the websocket close code.
getCode() - Method in class discord4j.common.close.CloseStatus
Return the websocket close code.
getContext() - Method in exception discord4j.common.close.CloseException
Return the Reactor Context providing metadata about this exception.
getFirstBackoff() - Method in class discord4j.common.retry.ReconnectContext
 
getFirstBackoff() - Method in class discord4j.common.retry.ReconnectOptions
 
getHttpClient() - Method in class discord4j.common.ReactorResources
Get the HttpClient configured by this provider.
getJitter() - Method in class discord4j.common.retry.ReconnectOptions
Retrieve the jitter to be applied on each backoff delay.
getMaxBackoffInterval() - Method in class discord4j.common.retry.ReconnectContext
 
getMaxBackoffInterval() - Method in class discord4j.common.retry.ReconnectOptions
 
getMaxRetries() - Method in class discord4j.common.retry.ReconnectOptions
Returns the number of retries.
getMessage() - Method in exception discord4j.common.close.CloseException
 
getObjectMapper() - Method in class discord4j.common.JacksonResources
Get the ObjectMapper configured by this provider.
getProperties() - Static method in class discord4j.common.GitProperties
Load a Properties object with application version data.
getReason() - Method in exception discord4j.common.close.CloseException
Return a websocket close reason, if present.
getReason() - Method in class discord4j.common.close.CloseStatus
Return a websocket close reason, if present.
getResetCount() - Method in class discord4j.common.retry.ReconnectContext
 
getTimerTaskScheduler() - Method in class discord4j.common.ReactorResources
Get the Scheduler configured by this provider to be used in timed tasks.
GIT_COMMIT_ID_DESCRIBE - Static variable in class discord4j.common.GitProperties
Use it on the properties given by GitProperties.getProperties() to get repository version captured at build time.
GitProperties - Class in discord4j.common
Provide information about the Git repository version captured at build time.
GitProperties() - Constructor for class discord4j.common.GitProperties
 

H

handleUnknownProperty(DeserializationContext, JsonParser, JsonDeserializer<?>, Object, String) - Method in class discord4j.common.jackson.UnknownPropertyHandler
 
httpClient(HttpClient) - Method in class discord4j.common.ReactorResources.Builder
Sets the underlying HttpClient to use.

J

JacksonResources - Class in discord4j.common
Provides a centralized Jackson 2.10 ObjectMapper allowing customization and reuse across the application.
JacksonResources() - Constructor for class discord4j.common.JacksonResources
Create a default ObjectMapper that allows any field visibility, registers modules to handle Discord4J specific mappings and ignores unknown properties.
JacksonResources(Function<ObjectMapper, ObjectMapper>) - Constructor for class discord4j.common.JacksonResources
Create a custom ObjectMapper, based on the defaults given by JacksonResources.JacksonResources()
JacksonResources(ObjectMapper) - Constructor for class discord4j.common.JacksonResources
Create with a pre-configured ObjectMapper.

K

KEY_BUCKET_ID - Static variable in class discord4j.common.LogUtil
 
KEY_GATEWAY_ID - Static variable in class discord4j.common.LogUtil
 
KEY_GUILD_ID - Static variable in class discord4j.common.LogUtil
 
KEY_REQUEST_ID - Static variable in class discord4j.common.LogUtil
 
KEY_SHARD_ID - Static variable in class discord4j.common.LogUtil
 

L

LogUtil - Class in discord4j.common
Utility to support logging details.
LogUtil() - Constructor for class discord4j.common.LogUtil
 

N

newHttpClient(ConnectionProvider, LoopResources) - Static method in class discord4j.common.ReactorResources
Create a Reactor Netty HttpClient using the given connection pool and event loop threads.
next() - Method in class discord4j.common.retry.ReconnectContext
Signal that the next retry attempt should be underway.
NORMAL_CLOSE - Static variable in class discord4j.common.close.CloseStatus
 

R

RateLimitOperator<T> - Class in discord4j.common.operator
A rate limiting operator based off the token bucket algorithm.
RateLimitOperator(int, Duration, Scheduler) - Constructor for class discord4j.common.operator.RateLimitOperator
 
RateLimitOperator(int, Duration, Scheduler, Scheduler) - Constructor for class discord4j.common.operator.RateLimitOperator
 
ReactorResources - Class in discord4j.common
Provides Reactor Netty resources like an HttpClient and Scheduler instances that can be customized and reused across the application.
ReactorResources() - Constructor for class discord4j.common.ReactorResources
Create with a default HttpClient and Schedulers for timed and blocking tasks.
ReactorResources(HttpClient, Scheduler, Scheduler) - Constructor for class discord4j.common.ReactorResources
Create with a pre-configured HttpClient and Schedulers for timed and blocking tasks.
ReactorResources(ReactorResources.Builder) - Constructor for class discord4j.common.ReactorResources
 
ReactorResources.Builder - Class in discord4j.common
 
ReconnectContext - Class in discord4j.common.retry
Encapsulate retrying state for reconnect operations.
ReconnectContext(Duration, Duration) - Constructor for class discord4j.common.retry.ReconnectContext
 
ReconnectOptions - Class in discord4j.common.retry
A configuration object to customize the gateway reconnection policy.
ReconnectOptions(ReconnectOptions.Builder) - Constructor for class discord4j.common.retry.ReconnectOptions
 
ReconnectOptions.Builder - Class in discord4j.common.retry
 
reset() - Method in class discord4j.common.retry.ReconnectContext
Reset the attempt count, treating further calls to ReconnectContext.next() as new retry sequences.
ResettableInterval - Class in discord4j.common
Emit ticks at a constant rate specified at ResettableInterval.start(Duration, Duration) and will continue until ResettableInterval.stop() is called or ResettableInterval.start(Duration, Duration) is re-invoked, resetting the previous emitter.
ResettableInterval(Scheduler) - Constructor for class discord4j.common.ResettableInterval
Create a ResettableInterval that emits ticks on the given Scheduler upon calling ResettableInterval.start(Duration, Duration).
retry(Throwable) - Static method in class discord4j.common.close.DisconnectBehavior
Create a DisconnectBehavior that instructs a client to retry in a graceful manner, with an optional cause.
retryAbruptly(Throwable) - Static method in class discord4j.common.close.DisconnectBehavior
Create a DisconnectBehavior that instructs a client to retry abruptly, with an optional cause.

S

setBackoff(Backoff) - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
setBackoffScheduler(Scheduler) - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
setFirstBackoff(Duration) - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
setJitter(Jitter) - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
setMaxBackoffInterval(Duration) - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
setMaxRetries(int) - Method in class discord4j.common.retry.ReconnectOptions.Builder
 
start(Duration, Duration) - Method in class discord4j.common.ResettableInterval
Begin producing ticks at the given rate.
stop(Throwable) - Static method in class discord4j.common.close.DisconnectBehavior
Create a DisconnectBehavior that instructs a client to stop in a graceful manner, with an optional cause.
stop() - Method in class discord4j.common.ResettableInterval
Dispose the current emitter task without completing or cancelling existing subscriptions to ResettableInterval.ticks().
stopAbruptly(Throwable) - Static method in class discord4j.common.close.DisconnectBehavior
Create a DisconnectBehavior that instructs a client to stop abruptly, with an optional cause.

T

ticks() - Method in class discord4j.common.ResettableInterval
Return a Flux that emits ticks at the currently configured rate.
timerTaskScheduler(Scheduler) - Method in class discord4j.common.ReactorResources.Builder
Sets the time-capable Scheduler to use.
toString() - Method in class discord4j.common.close.CloseStatus
 
toString() - Method in class discord4j.common.close.DisconnectBehavior
 
traceDebug(Logger, Function<Boolean, String>) - Static method in class discord4j.common.LogUtil
Log a message depending on the enabled level for a given Logger.

U

UnknownPropertyHandler - Class in discord4j.common.jackson
 
UnknownPropertyHandler(boolean) - Constructor for class discord4j.common.jackson.UnknownPropertyHandler
 

V

valueOf(String) - Static method in enum discord4j.common.close.DisconnectBehavior.Action
Returns the enum constant of this type with the specified name.
values() - Static method in enum discord4j.common.close.DisconnectBehavior.Action
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H J K L N R S T U V 
Skip navigation links