Add possibility to insert additional copies of certain blocks.
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ClientPut.java
index f7dfabc..5176e6a 100644 (file)
@@ -129,6 +129,37 @@ public class ClientPut 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));
+       }
+
+       /**
         * Determines whether this request appears on the global queue.
         *
         * @param global