From: David ‘Bombe’ Roden Date: Thu, 18 Mar 2010 13:25:53 +0000 (+0100) Subject: Add “fork on cacheable” flag to all ClientPut* requests. X-Git-Tag: v0.1.3^2~24 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=375e699cec4c959fe4657da3798a17357dcd24d4;p=jFCPlib.git Add “fork on cacheable” flag to all ClientPut* requests. --- diff --git a/src/main/java/net/pterodactylus/fcp/ClientPut.java b/src/main/java/net/pterodactylus/fcp/ClientPut.java index f7dfabc..809146a 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientPut.java +++ b/src/main/java/net/pterodactylus/fcp/ClientPut.java @@ -129,6 +129,17 @@ 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)); + } + + /** * Determines whether this request appears on the global queue. * * @param global diff --git a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java index 55e5779..c370eaf 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java +++ b/src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java @@ -102,6 +102,17 @@ 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 whether the request is on the global queue. * * @param global diff --git a/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java b/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java index d9b3924..c4e46c6 100644 --- a/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java +++ b/src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java @@ -90,6 +90,17 @@ public class ClientPutDiskDir 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)); + } + + /** * Determines whether this request appears on the global queue. * * @param global