2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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.controller.eos.akka.owner.supervisor.command;
10 import akka.actor.typed.ActorRef;
11 import akka.pattern.StatusReply;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.entity.owners.norev.EntityId;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.entity.owners.norev.EntityName;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.entity.owners.norev.EntityType;
17 public abstract class AbstractEntityRequest<T extends OwnerSupervisorReply> extends OwnerSupervisorRequest<T> {
18 private static final long serialVersionUID = 1L;
20 private final @NonNull EntityType type;
21 private final @NonNull EntityName name;
23 AbstractEntityRequest(final ActorRef<StatusReply<T>> replyTo, final EntityId entity) {
25 this.type = entity.requireType();
26 this.name = entity.requireName();
29 public final @NonNull EntityType getType() {
33 public final @NonNull EntityName getName() {