Skip to content

Commit 1f741cf

Browse files
committed
Added documentation to the Listener class
1 parent a850a99 commit 1f741cf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/javaxt/express/notification/Listener.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33

44
public interface Listener {
55

6+
7+
//**************************************************************************
8+
//** processEvent
9+
//**************************************************************************
10+
/** Used to process an event published by the NotificationService
11+
* @param event Type of event (e.g. "create", "update", "delete")
12+
* @param model Subject of the event (e.g. "User", "File", etc)
13+
* @param data Additional information related to the event (e.g. User ID)
14+
* @param timestamp Timestamp of when the event was published. Units are
15+
* in nanoseconds in UTC. Use the getMilliseconds() method in the
16+
* javaxt.express.utils.DateUtils. to convert the nanoseconds to
17+
* milliseconds.
18+
*/
619
public void processEvent(String event, String model, Value data, long timestamp);
720

821
}

0 commit comments

Comments
 (0)