| Line | |
|---|
| 1 | package omq.common.event; |
|---|
| 2 | |
|---|
| 3 | import java.io.Serializable; |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * |
|---|
| 7 | * @author Sergi Toda <sergi.toda@estudiants.urv.cat> |
|---|
| 8 | * |
|---|
| 9 | */ |
|---|
| 10 | public abstract class Event implements Serializable { |
|---|
| 11 | |
|---|
| 12 | /** |
|---|
| 13 | * |
|---|
| 14 | */ |
|---|
| 15 | private static final long serialVersionUID = 1L; |
|---|
| 16 | |
|---|
| 17 | private String corrId; |
|---|
| 18 | private String topic; |
|---|
| 19 | |
|---|
| 20 | public Event() { |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | public Event(String corrId, String topic) { |
|---|
| 24 | this.corrId = corrId; |
|---|
| 25 | this.topic = topic; |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | public Event(String corrId) { |
|---|
| 29 | this.corrId = corrId; |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | public String getCorrId() { |
|---|
| 33 | return corrId; |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | public void setCorrId(String corrId) { |
|---|
| 37 | this.corrId = corrId; |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | public String getTopic() { |
|---|
| 41 | return topic; |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | public void setTopic(String topic) { |
|---|
| 45 | this.topic = topic; |
|---|
| 46 | } |
|---|
| 47 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.