X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FClientPutComplexDir.java;h=154c8370e709dd061f4fc990126edaa0e723e2e0;hb=b171126719c983b590c51f22eb60a3e0afdf1fb9;hp=c370eaf2bccec26df4b6dd109e3c3989c425b7a7;hpb=375e699cec4c959fe4657da3798a17357dcd24d4;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java index c370eaf..154c837 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java +++ b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java @@ -105,14 +105,34 @@ 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 + * {@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 @@ -209,8 +229,8 @@ public class ClientPutComplexDir extends FcpMessage { * {@inheritDoc} *

* Do not call this method to add input streams! The input streams, if any, - * will be taken directly from the {@link FileEntry}s and the stream you set - * here will be overridden! + * will be taken directly from the {@link FileEntry}s and the stream you + * set here will be overridden! */ @Override public void setPayloadInputStream(InputStream payloadInputStream) {