TopicInstancesHolderImpl.java
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* 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;
}
}