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

org.yamcs.commanding.CommandQueueMemento Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.commanding;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.annotations.SerializedName;

/**
 * Object that is used to persist link state information across Yamcs restarts.
 */
public class CommandQueueMemento {

    @SerializedName("queues")
    private Map queues = new HashMap<>();

    public void addCommandQueueState(String queue, CommandQueueState state) {
        queues.put(queue, state);
    }

    public CommandQueueState getCommandQueueState(String queue) {
        return queues.get(queue);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy