APISonar


com.hazelcast.partition.ReplicaErrorLogger.log

> com > hazelcast > partition > ReplicaErrorLogger > log
com APIs hazelcast APIs partition APIs ReplicaErrorLogger APIs log APIs

Example 1
public void logError(Throwable e) {
        if (backupOp != null) {
            backupOp.logError(e);
        } else {
            ReplicaErrorLogger.log(e, getLogger());
        }
    }
Example 2
public void notifyBackupCall(long callId) {
        try {
            final BasicInvocation invocation = invocations.get(callId);
            if (invocation != null) {
                invocation.signalOneBackupComplete();
            }
        } catch (Exception e) {
            ReplicaErrorLogger.log(e, logger);
        }
    }
Example 3
public void logError(Throwable e) {
        if (backupOp != null) {
            // Be sure that backup operation is initialized.
            // If there is an exception before `run` (for example caller is not valid anymore),
            // backup operation is initialized. So, we are initializing it here ourselves.
            ensureBackupOperationInitialized();
            backupOp.logError(e);
        } else {
            ReplicaErrorLogger.log(e, getLogger());
        }
    }