summaryrefslogtreecommitdiff
path: root/lang/java/src/com/sleepycat/db/ReplicationViewHandler.java
blob: aec03f412cd350df5f6b6e44868551e95ebbb4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}