2 * Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.common.api.clustering;
11 * Enumerates the current ownership state for an entity.
13 * @author Thomas Pantelis
15 public enum EntityOwnershipState {
17 * The local process instance is the owner of the entity.
22 * A remote process instance is the owner of the entity.
27 * The entity has no owner and thus no candidates.
31 public static EntityOwnershipState from(boolean isOwner, boolean hasOwner) {
35 return OWNED_BY_OTHER;