EventTypeEnum
- Enum of possible event sub-typepublic abstract class Event<EventTypeEnum extends Enum<?>> extends Object
Immutable base class for all sensor hub events. All sub-classes should remain immutable.
Modifier and Type | Field and Description |
---|---|
protected Object |
source |
protected long |
timeStamp |
protected EventTypeEnum |
type |
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Object |
getSource()
Gets the source of the event as an object reference.
|
long |
getTimeStamp() |
EventTypeEnum |
getType() |
protected long timeStamp
protected EventTypeEnum extends Enum<?> type
protected transient Object source
public long getTimeStamp()
public EventTypeEnum getType()
public Object getSource()
Copyright © 2016 Sensia Software LLC. All rights reserved.