/* * The MtGox-Java API is free software: you can redistribute it and/or modify * it under the terms of the Lesser GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The MtGox-Java API is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * Lesser GNU General Public License for more details. * * You should have received a copy of the Lesser GNU General Public License * along with the MtGox-Java API . If not, see <http://www.gnu.org/licenses/>. */ package to.sparks.mtgox.event; import java.util.Date; import org.springframework.context.ApplicationEvent; /** * * @author SparksG */ public abstract class StreamEvent<T> extends ApplicationEvent { // private static final long serialVersionUID = 3487524279263502L; private T payload; private Date eventReceived; public StreamEvent(Object source, T payload) { super(source); this.payload = payload; this.eventReceived = new Date(); } public Object getPayload() { return payload; } public Date getEventReceived() { return eventReceived; } }