package org.opendaylight.mdsal.eos.binding.api;
import com.google.common.annotations.Beta;
-import com.google.common.base.Optional;
+import java.util.Optional;
import javax.annotation.Nonnull;
import org.opendaylight.mdsal.eos.common.api.CandidateAlreadyRegisteredException;
import org.opendaylight.mdsal.eos.common.api.EntityOwnershipState;
public interface EntityOwnershipService extends
GenericEntityOwnershipService<InstanceIdentifier<?>, Entity, EntityOwnershipListener> {
- /**
- * {@inheritDoc}
- */
@Override
EntityOwnershipCandidateRegistration registerCandidate(@Nonnull Entity entity)
throws CandidateAlreadyRegisteredException;
- /**
- * {@inheritDoc}
- */
@Override
EntityOwnershipListenerRegistration registerListener(@Nonnull String entityType,
@Nonnull EntityOwnershipListener listener);
- /**
- * {@inheritDoc}
- */
@Override
Optional<EntityOwnershipState> getOwnershipState(@Nonnull Entity forEntity);
- /**
- * {@inheritDoc}
- */
@Override
boolean isCandidateRegistered(@Nonnull Entity forEntity);
}