public enum EntityOwnershipChangeState extends Enum<EntityOwnershipChangeState>
Enum Constant and Description |
---|
LOCAL_OWNERSHIP_GRANTED
The local process instance has been granted ownership.
|
LOCAL_OWNERSHIP_LOST_NEW_OWNER
The local process instance has lost ownership and another process instance is now the owner.
|
LOCAL_OWNERSHIP_LOST_NO_OWNER
The local process instance has lost ownership and there are no longer any candidates for the entity and
thus has no owner.
|
LOCAL_OWNERSHIP_RETAINED_WITH_NO_CHANGE
The local process instance ownership has not changed but some other aspect has changed (for example inJeopardy).
|
REMOTE_OWNERSHIP_CHANGED
Entity ownership has transitioned to another process instance and this instance was not the previous owner.
|
REMOTE_OWNERSHIP_LOST_NO_OWNER
A remote process instance has lost ownership and there are no longer any candidates for the entity and
thus has no owner.
|
Modifier and Type | Method and Description |
---|---|
static EntityOwnershipChangeState |
from(boolean wasOwner,
boolean isOwner,
boolean hasOwner) |
boolean |
hasOwner()
Returns the current ownership status of the entity across all process instances.
|
boolean |
isOwner()
Returns the current ownership status of the entity for this process instance.
|
String |
toString() |
static EntityOwnershipChangeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityOwnershipChangeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
wasOwner()
Returns the previous ownership status of the entity for this process instance.
|
public static final EntityOwnershipChangeState LOCAL_OWNERSHIP_GRANTED
public static final EntityOwnershipChangeState LOCAL_OWNERSHIP_LOST_NEW_OWNER
public static final EntityOwnershipChangeState LOCAL_OWNERSHIP_LOST_NO_OWNER
public static final EntityOwnershipChangeState LOCAL_OWNERSHIP_RETAINED_WITH_NO_CHANGE
public static final EntityOwnershipChangeState REMOTE_OWNERSHIP_CHANGED
public static final EntityOwnershipChangeState REMOTE_OWNERSHIP_LOST_NO_OWNER
public static EntityOwnershipChangeState[] values()
for (EntityOwnershipChangeState c : EntityOwnershipChangeState.values()) System.out.println(c);
public static EntityOwnershipChangeState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean wasOwner()
public boolean isOwner()
public boolean hasOwner()
public String toString()
toString
in class Enum<EntityOwnershipChangeState>
public static EntityOwnershipChangeState from(boolean wasOwner, boolean isOwner, boolean hasOwner)
Copyright © 2019 OpenDaylight. All rights reserved.