Skip to content

Commit 747a18e

Browse files
author
Alexander Litus
committed
Add docs to command bus builder.
1 parent 1e19970 commit 747a18e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

server/src/main/java/org/spine3/server/command/CommandBus.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ private enum LogSingleton {
344344
public static class Builder {
345345

346346
private CommandStore commandStore;
347+
@Nullable
347348
private CommandScheduler scheduler;
348349

349350
public CommandBus build() {
@@ -352,6 +353,9 @@ public CommandBus build() {
352353
return commandBus;
353354
}
354355

356+
/**
357+
* Sets a command store, which is required.
358+
*/
355359
public Builder setCommandStore(CommandStore commandStore) {
356360
this.commandStore = commandStore;
357361
return this;
@@ -361,6 +365,9 @@ public CommandStore getCommandStore() {
361365
return commandStore;
362366
}
363367

368+
/**
369+
* Sets a command scheduler, which is not required.
370+
*/
364371
public Builder setScheduler(CommandScheduler scheduler) {
365372
this.scheduler = scheduler;
366373
return this;

0 commit comments

Comments
 (0)