public interface ActionLogger
| Modifier and Type | Method and Description |
|---|---|
Action.Builder |
actionBuilder()
Returns a new
Action.Builder instance |
@NonNull CompletableFuture<Void> |
broadcastAction(@NonNull Action entry)
Submits a log entry to the plugins log broadcasting handler.
|
@NonNull CompletableFuture<ActionLog> |
getLog()
Gets a
ActionLog instance from the plugin storage. |
@NonNull CompletableFuture<Void> |
submit(@NonNull Action entry)
Submits a log entry to the plugin to be handled.
|
@NonNull CompletableFuture<Void> |
submitToStorage(@NonNull Action entry)
Submits a log entry to the plugins storage handler.
|
Action.Builder actionBuilder()
Action.Builder instance@NonNull CompletableFuture<ActionLog> getLog()
ActionLog instance from the plugin storage.@NonNull CompletableFuture<Void> submit(@NonNull Action entry)
This method submits the log to the storage provider and broadcasts it.
It is therefore roughly equivalent to calling
submitToStorage(Action) and broadcastAction(Action),
however, using this method is preferred to making the calls individually.
If you want to submit a log entry but don't know which method to pick, use this one.
entry - the entry to submit@NonNull CompletableFuture<Void> submitToStorage(@NonNull Action entry)
entry - the entry to submit@NonNull CompletableFuture<Void> broadcastAction(@NonNull Action entry)
If enabled, this method will also dispatch the log entry via the
plugins MessagingService.
entry - the entry to submit