TopicInstancesHolderImpl.java 1.07 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.apache.sling.discovery.InstanceDescription
 */
package com.adobe.granite.offloading.impl;

import com.adobe.granite.offloading.api.TopicInstancesHolder;
import java.util.HashSet;
import java.util.Set;
import org.apache.sling.discovery.InstanceDescription;

public class TopicInstancesHolderImpl
implements TopicInstancesHolder {
    private String topic;
    private Set<InstanceDescription> enabledInstances;
    private Set<InstanceDescription> disabledInstances;

    public TopicInstancesHolderImpl(String topic) {
        this.topic = topic;
        this.enabledInstances = new HashSet<InstanceDescription>();
        this.disabledInstances = new HashSet<InstanceDescription>();
    }

    @Override
    public Set<InstanceDescription> getEnabledInstances() {
        return this.enabledInstances;
    }

    @Override
    public Set<InstanceDescription> getDisabledInstances() {
        return this.disabledInstances;
    }

    @Override
    public String getTopic() {
        return this.topic;
    }
}