summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java b/container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java
new file mode 100644
index 00000000000..f7714ce1457
--- /dev/null
+++ b/container-search/src/main/java/com/yahoo/prelude/fastsearch/CacheParams.java
@@ -0,0 +1,25 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.prelude.fastsearch;
+
+
+/**
+ * Helper class for carrying around cache-related
+ * config parameters to the FastSearcher class.
+ *
+ * @author arnej27959
+ */
+public class CacheParams {
+ public int cacheMegaBytes = 0;
+ public double cacheTimeOutSeconds = 0;
+ public CacheControl cacheControl = null;
+
+ public CacheParams(int megabytes, double timeoutseconds) {
+ this.cacheMegaBytes = megabytes;
+ this.cacheTimeOutSeconds = timeoutseconds;
+ }
+
+ public CacheParams(CacheControl cacheControl) {
+ this.cacheControl = cacheControl;
+ }
+
+}