X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FPostBuilder.java;h=5564a9343b2fbd138776393e2257f81657003a75;hb=cf032630b167166215f45d8ae2e5147e1934c223;hp=0114ac555ed30b57e7bb5b5849b3ab3be35f8f51;hpb=2f4dcbcbc66688f159d96ebfb04d8bd5f96e9c28;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/database/PostBuilder.java b/src/main/java/net/pterodactylus/sone/database/PostBuilder.java index 0114ac5..5564a93 100644 --- a/src/main/java/net/pterodactylus/sone/database/PostBuilder.java +++ b/src/main/java/net/pterodactylus/sone/database/PostBuilder.java @@ -121,6 +121,12 @@ public interface PostBuilder { * @throws IllegalStateException * if this builder’s configuration is not valid */ - public Post build() throws IllegalStateException; + public Post build(Optional postCreated) throws IllegalStateException; + + interface PostCreated { + + void postCreated(Post post); + + } }