1 /*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2002,2006 Oracle. All rights reserved. 5 * 6 * $Id: ReplicatorInstance.java,v 1.3 2006/10/30 21:14:15 bostic Exp $ 7 */ 8 9 package com.sleepycat.je.dbi; 10 11 import java.nio.ByteBuffer; 12 13 import com.sleepycat.je.DatabaseException; 14 15 /** 16 * Replication functionality is available to the core JE code through this 17 * interface. The replication packages use Java 1.5 features and this interface 18 * lets us continue to support Java 1.4 for non-replicated environments. 19 * 20 * There should be no references to any classes from com.sleepycat.je.rep* 21 * except through this and other replication interfaces. 22 */ 23 public interface ReplicatorInstance { 24 25 public void replicateOperation(Operation op, 26 ByteBuffer marshalledBuffer) 27 throws DatabaseException; 28 } 29