summaryrefslogtreecommitdiff
path: root/lang/java/src/com/sleepycat/db/ReplicationViewHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'lang/java/src/com/sleepycat/db/ReplicationViewHandler.java')
-rw-r--r--lang/java/src/com/sleepycat/db/ReplicationViewHandler.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/java/src/com/sleepycat/db/ReplicationViewHandler.java b/lang/java/src/com/sleepycat/db/ReplicationViewHandler.java
new file mode 100644
index 00000000..aec03f41
--- /dev/null
+++ b/lang/java/src/com/sleepycat/db/ReplicationViewHandler.java
@@ -0,0 +1,31 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 2012, 2015 Oracle and/or its affiliates. All rights reserved.
+ *
+ * $Id$
+ */
+
+package com.sleepycat.db;
+
+/**
+An interface specifying a callback function to be used by replication views.
+*/
+public interface ReplicationViewHandler {
+ /**
+ The application-specific function used by replication views to determine
+ whether a database file is replicated.
+ <p>
+ @param dbenv
+ The enclosing database environment handle.
+ @param name
+ The name of the database file.
+ @param flags
+ Currently unused.
+ @return True if the file is replicated, or false if not.
+ @throws DatabaseException if an error occurs when determining whether or
+ not the database file is replicated.
+ */
+ boolean partial_view(Environment dbenv, String name, int flags)
+ throws DatabaseException;
+}