Add possibility to insert additional copies of certain blocks.
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ClientPut.java
index 809146a..5176e6a 100644 (file)
@@ -140,6 +140,26 @@ public class ClientPut extends FcpMessage {
        }
 
        /**
+        * 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