Skip to content

Commit

Permalink
feat(shulker-server-agent): add setReady method to api
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed Jan 2, 2025
1 parent 6308033 commit 6a2a5a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import java.util.concurrent.CompletableFuture
class ShulkerServerAPIImpl(private val agent: ShulkerServerAgentCommon) : ShulkerServerAPI() {
override fun askShutdown() = this.agent.shutdown()

override fun setReady(): CompletableFuture<Void> = this.agent.agonesGateway.setReady().thenAccept {}

override fun setAllocated(): CompletableFuture<Void> = this.agent.agonesGateway.setAllocated().thenAccept {}

override fun setReserved(seconds: Long): CompletableFuture<Void> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public abstract class ShulkerServerAPI {
public static ShulkerServerAPI INSTANCE;

abstract public void askShutdown();
abstract public CompletableFuture<Void> setReady();
abstract public CompletableFuture<Void> setAllocated();
abstract public CompletableFuture<Void> setReserved(long seconds);
}

0 comments on commit 6a2a5a8

Please sign in to comment.