org.drools.examples.broker.events
Interface Event<T>

All Known Implementing Classes:
EventImpl

public interface Event<T>

An event interface for the feeder framework This is really a very simple and quick way of doing. In the future we may use the field accessors framework that we use in drools to make this transparent


Method Summary
 Date getDate()
          This is the same as getTimestamp, but returns a Date object instead
 T getObject()
          Returns this event's actual object
 long getTimestamp()
          Returns the timestamp from this event
 

Method Detail

getTimestamp

long getTimestamp()
Returns the timestamp from this event

Returns:

getDate

Date getDate()
This is the same as getTimestamp, but returns a Date object instead

Returns:

getObject

T getObject()
Returns this event's actual object

Returns:


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.