From 375e699cec4c959fe4657da3798a17357dcd24d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 18 Mar 2010 14:25:53 +0100 Subject: [PATCH] =?utf8?q?Add=20=E2=80=9Cfork=20on=20cacheable=E2=80=9D=20?= =?utf8?q?flag=20to=20all=20ClientPut*=20requests.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/fcp/ClientPut.java | 11 +++++++++++ src/main/java/net/pterodactylus/fcp/ClientPutComplexDir.java | 11 +++++++++++ src/main/java/net/pterodactylus/fcp/ClientPutDiskDir.java | 11 +++++++++++ 3 files changed, 33 insertions(+) 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 -- 2.7.4