X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FClientPutComplexDir.java;h=5b724c712a4b4bfac8547c021e4bed898c752b5c;hb=50f1c4c53c9c3435bd1a0e33d1b949a22eab9df7;hp=55e57792f62eb6f25833b013a6f3f43593f5d40f;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java index 55e5779..5b724c7 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java +++ b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java @@ -102,6 +102,37 @@ public class ClientPutComplexDir extends FcpMessage { } /** + * Sets whether an insert request should be forked when it is cached. + * + * @param forkOnCacheable + * {@code true} to fork the insert when it is cached, {@code + * false} otherwise + */ + public void setForkOnCacheable(boolean forkOnCacheable) { + setField("ForkOnCacheable", String.valueOf(forkOnCacheable)); + } + + /** + * Sets the number of additional inserts of single blocks. + * + * @param extraInsertsSingleBlock + * The number of additional inserts + */ + public void setExtraInsertsSingleBlock(int extraInsertsSingleBlock) { + setField("ExtraInsertsSingleBlock", String.valueOf(extraInsertsSingleBlock)); + } + + /** + * Sets the number of additional inserts of splitfile header blocks. + * + * @param extraInsertsSplitfileHeaderBlock + * The number of additional inserts + */ + public void setExtraInsertsSplitfileHeaderBlock(int extraInsertsSplitfileHeaderBlock) { + setField("ExtraInsertsSplitfileHeaderBlock", String.valueOf(extraInsertsSplitfileHeaderBlock)); + } + + /** * Sets whether the request is on the global queue. * * @param global