public class Event extends Object implements Serializable
| Constructor and Description |
|---|
Event()
Default constructor.
|
Event(String featureName,
EventType type)
Paramterized constructor.
|
Event(String featureName,
EventType type,
long time)
Paramterized constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFeatureName()
Getter accessor for attribute 'featureName'.
|
long |
getTimestamp()
Getter accessor for attribute 'timestamp'.
|
EventType |
getType()
Getter accessor for attribute 'type'.
|
void |
setFeatureName(String featureName)
Setter accessor for attribute 'featureName'.
|
void |
setType(EventType type)
Setter accessor for attribute 'type'.
|
String |
toCSV()
Serialized as a CSV line (without line return).
|
String |
toJson()
Serialized as a Json document.
|
String |
toString() |
String |
toThreadName()
Serialized as a CSV line (without line return).
|
public Event()
public Event(String featureName, EventType type)
featureName - target feature nametype - target event typepublic EventType getType()
public void setType(EventType type)
type - new value for 'type 'public String getFeatureName()
public void setFeatureName(String featureName)
featureName - new value for 'featureName 'public long getTimestamp()
public String toCSV()
public String toThreadName()
public String toJson()
Copyright © 2013–2015 FF4J. All rights reserved.