Skip to content

Commit 61482c5

Browse files
committed
Marked Event(+Header|Data) as Serializable
1 parent 07c1553 commit 61482c5

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/main/java/com/github/shyiko/mysql/binlog/event/Event.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
*/
1616
package com.github.shyiko.mysql.binlog.event;
1717

18+
import java.io.Serializable;
19+
1820
/**
1921
* @author <a href="mailto:stanley.shyiko@gmail.com">Stanley Shyiko</a>
2022
*/
21-
public class Event {
23+
public class Event implements Serializable {
2224

2325
private EventHeader header;
2426
private EventData data;

src/main/java/com/github/shyiko/mysql/binlog/event/EventData.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
*/
1616
package com.github.shyiko.mysql.binlog.event;
1717

18+
import java.io.Serializable;
19+
1820
/**
1921
* @author <a href="mailto:stanley.shyiko@gmail.com">Stanley Shyiko</a>
2022
*/
21-
public interface EventData {
23+
public interface EventData extends Serializable {
2224
}

src/main/java/com/github/shyiko/mysql/binlog/event/EventHeader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@
1515
*/
1616
package com.github.shyiko.mysql.binlog.event;
1717

18+
import java.io.Serializable;
19+
1820
/**
1921
* @author <a href="mailto:stanley.shyiko@gmail.com">Stanley Shyiko</a>
2022
*/
21-
public interface EventHeader {
23+
public interface EventHeader extends Serializable {
2224

2325
long getTimestamp();
2426
EventType getEventType();
2527
long getServerId();
2628
long getHeaderLength();
2729
long getDataLength();
28-
2930
}

0 commit comments

Comments
 (0)