Merge "Add filtering capability to config.ini in order to reference logging bridge...
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / internal / SwitchEvent.java
index 87e30d70c61ebcc2e1fffe0c376a1b146d8ab561..785be9be092258ef8e36e10795597f8006d64080 100644 (file)
@@ -21,11 +21,13 @@ public class SwitchEvent {
     private SwitchEventType eventType;
     private ISwitch sw;
     private OFMessage msg;
+    private int priority;
 
-    public SwitchEvent(SwitchEventType type, ISwitch sw, OFMessage msg) {
+    public SwitchEvent(SwitchEventType type, ISwitch sw, OFMessage msg, int priority) {
         this.eventType = type;
         this.sw = sw;
         this.msg = msg;
+        this.priority = priority;
     }
 
     public SwitchEventType getEventType() {
@@ -40,6 +42,14 @@ public class SwitchEvent {
         return this.msg;
     }
 
+    public int getPriority() {
+        return priority;
+    }
+
+    public void setPriority(int priority) {
+        this.priority = priority;
+    }
+
     @Override
     public String toString() {
         String s;