com.sleepycat.je.rep.LogOverwriteException Maven / Gradle / Ivy
The newest version!
/*-
* Copyright (C) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle Berkeley
* DB Java Edition made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle Berkeley DB Java Edition for a copy of the
* license and additional information.
*/
package com.sleepycat.je.rep;
import com.sleepycat.je.OperationFailureException;
/**
* Thrown when one or more log files are modified (overwritten) as the result
* of a replication operation. This occurs when a replication operation must
* change existing data in a log file in order to synchronize with other nodes
* in a replication group. Any previously copied log files may be invalid and
* should be discarded.
*
* This exception is thrown by {@link
* com.sleepycat.je.util.DbBackup}. Backups and similar operations that copy
* log files should discard any copied files when this exception occurs, and
* may retry the operation at a later time. The time interval during which
* backups are not possible will be fairly short (less than a minute).
*
* Note that this exception is never thrown in a standalone (non-replicated)
* environment.
*
* The {@link com.sleepycat.je.Transaction} handle is not
* invalidated as a result of this exception.
*
* @since 4.0
*/
public class LogOverwriteException extends OperationFailureException {
private static final long serialVersionUID = 19238344223L;
/**
* For internal use only.
* @hidden
*/
public LogOverwriteException(String message) {
super(null /*locker*/, false /*abortOnly*/, message, null /*cause*/);
}
/**
* For internal use only.
* @hidden
*/
private LogOverwriteException(String message,
LogOverwriteException cause) {
super(message, cause);
}
/**
* For internal use only.
* @hidden
*/
@Override
public OperationFailureException wrapSelf(String message) {
return new LogOverwriteException(message, this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy