Project

General

Profile

1 1218 antonis.le
package eu.dnetlib.domain.enabling;
2
3 1546 antonis.le
import eu.dnetlib.domain.EPR;
4
5 1218 antonis.le
/**
6 1288 antonis.le
 * Represents a subscription used for communication with the IS_SN
7
 *
8 1218 antonis.le
 * @author christos
9 1288 antonis.le
 *
10 1218 antonis.le
 */
11 1288 antonis.le
public class Subscription {
12 1218 antonis.le
	private String id = null;
13
	private String topic = null;
14
	private int timeToLive = 0;
15 1546 antonis.le
	private EPR epr = null;
16 1218 antonis.le
17 1546 antonis.le
	public EPR getEpr() {
18
		return epr;
19
	}
20
21
	public void setEpr(EPR epr) {
22
		this.epr = epr;
23
	}
24
25 1288 antonis.le
	public String getId() {
26
		return id;
27 1218 antonis.le
	}
28
29 1288 antonis.le
	public void setId(String id) {
30
		this.id = id;
31 1218 antonis.le
	}
32
33 1288 antonis.le
	public String getTopic() {
34
		return topic;
35 1218 antonis.le
	}
36
37 1288 antonis.le
	public void setTopic(String topic) {
38
		this.topic = topic;
39 1218 antonis.le
	}
40
41 1288 antonis.le
	public int getTimeToLive() {
42
		return timeToLive;
43 1218 antonis.le
	}
44
45 1288 antonis.le
	public void setTimeToLive(int timeToLive) {
46
		this.timeToLive = timeToLive;
47 1218 antonis.le
	}
48
49 1288 antonis.le
	public String toString() {
50 1218 antonis.le
		return topic;
51
	}
52
}