/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.terracotta.consensus.entity;

/**
 *
 * @author cdennis
 */
public abstract class LeaderOffer implements ElectionResponse {

  private final boolean clean;

  public LeaderOffer(boolean clean) {
    this.clean = clean;
  }

  public final boolean isPending() {
    return false;
  }

  public final boolean clean() {
    return clean;
  }
}

/*
 * The contents of this file are subject to the Terracotta Public License Version
 * 2.0 (the "License"); You may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 * http://terracotta.org/legal/terracotta-public-license.
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Covered Software is Connection API.
 *
 * The Initial Developer of the Covered Software is
 * Terracotta, Inc., a Software AG company
 */

package org.terracotta.consensus.entity;

/**
 *
 * @author cdennis
 */
public abstract class LeaderOffer implements ElectionResponse {

  private final boolean clean;

  public LeaderOffer(boolean clean) {
    this.clean = clean;
  }

  public final boolean isPending() {
    return false;
  }

  public final boolean clean() {
    return clean;
  }
}

Update header (LeaderOffer)