// Path: electrons/src/main/java/com/ziyuan/events/Electron.java
// public abstract class Electron extends EventObject {
// 
//     /**
//      * 发生的时间戳
//      */
//     private long timestamp;
// 
//     /**
//      * 该事件的权重，在限流中起作用，默认为1
//      */
//     private int weight = 1;
// 
//     /**
//      * Constructs a prototypical Event.
//      *
//      * @param source The object on which the Event initially occurred.
//      * @throws IllegalArgumentException if source is null.
//      */
//     public Electron(Object source) {
//         super(source);
//         this.timestamp = System.currentTimeMillis();
//     }
// 
//     public final long getTimestamp() {
//         return this.timestamp;
//     }
// 
//     public final int getWeight() {
//         return weight;
//     }
// 
//     public final void setWeight(int weight) {
//         this.weight = weight;
//     }
// }


import com.ziyuan.events.Electron;
package com.ziyuan;


/**
 * TestListener
 *
 * @author ziyuan
 * @since 2017-03-16
 */
public class TestListener implements ElectronsListener {

    @Override
// Path: electrons/src/main/java/com/ziyuan/events/Electron.java
// public abstract class Electron extends EventObject {
// 
//     /**
//      * 发生的时间戳
//      */
//     private long timestamp;
// 
//     /**
//      * 该事件的权重，在限流中起作用，默认为1
//      */
//     private int weight = 1;
// 
//     /**
//      * Constructs a prototypical Event.
//      *
//      * @param source The object on which the Event initially occurred.
//      * @throws IllegalArgumentException if source is null.
//      */
//     public Electron(Object source) {
//         super(source);
//         this.timestamp = System.currentTimeMillis();
//     }
// 
//     public final long getTimestamp() {
//         return this.timestamp;
//     }
// 
//     public final int getWeight() {
//         return weight;
//     }
// 
//     public final void setWeight(int weight) {
//         this.weight = weight;
//     }
// }


// Path: electrons/src/test/java/com/ziyuan/TestListener.java
import com.ziyuan.events.Electron;

package com.ziyuan;


/**
 * TestListener
 *
 * @author ziyuan
 * @since 2017-03-16
 */
public class TestListener implements ElectronsListener {

    @Override
    public void onEvent(Electron electrons) throws Exception {