T - The event typepublic interface Event<T>
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DATA
The data parameter. 
 | 
static String | 
EVENT
The event parameter. 
 | 
static String | 
ID
The id parameter. 
 | 
static String | 
RETRY
The retry parameter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Event<T> | 
comment(String comment)
Sets the event comment. 
 | 
String | 
getComment()  | 
T | 
getData()  | 
String | 
getId()  | 
String | 
getName()  | 
Duration | 
getRetry()  | 
Event<T> | 
id(String id)
Sets the id. 
 | 
Event<T> | 
name(String name)
Sets the event name. 
 | 
static <ET> Event<ET> | 
of(ET data)
Constructs a new event for the given data. 
 | 
static <ET> Event<ET> | 
of(Event event,
  ET data)
Constructs a new event for the given data. 
 | 
Event<T> | 
retry(Duration duration)
Sets the retry duration. 
 | 
static final String ID
static final String EVENT
static final String DATA
static final String RETRY
T getData()
String getId()
String getName()
String getComment()
Duration getRetry()
Event<T> retry(@Nullable Duration duration)
duration - The durationEvent<T> name(@Nullable String name)
name - The event nameEvent<T> comment(@Nullable String comment)
comment - The Event commentstatic <ET> Event<ET> of(ET data)
ET - The data typedata - The data