All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.controller.cluster.sharding.messages.NotifyProducerRemoved Maven / Gradle / Ivy

/*
 * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.controller.cluster.sharding.messages;

import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableList;
import java.io.Serializable;
import java.util.Collection;
import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;

/**
 * Message sent to remote {@link ShardedDataTreeActor}'s when attempting
 * to close a producer. The remote node should attempt to close a producer in the local sharding service and reply
 * with success/failure based on the attempt result. If the producer doesn't exist on this node report Success.
 */
@Beta
public class NotifyProducerRemoved implements Serializable {
    private static final long serialVersionUID = 1L;
    private final Collection subtrees;

    public NotifyProducerRemoved(final Collection subtrees) {
        this.subtrees = ImmutableList.copyOf(subtrees);
    }

    public Collection getSubtrees() {
        return subtrees;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy