E - the element typepublic abstract class AbstractMultiConnectionEvent<E extends java.lang.Enum<E>>
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMultiConnectionEvent(E type)
Instantiates a new abstract multi connection event.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCreateTimestamp()
Returns the time this event was created, use in lieu of received time as
network latency may skew any time-based calculations.
|
E |
getEventType()
Gets the event type.
|
long |
getNanoTime()
"This method can only be used to measure elapsed time and is not related to
any other notion of system or wall-clock time." Use only in comparison to
other
nanoTimes |
protected AbstractMultiConnectionEvent(E type)
type - the typepublic E getEventType()
public long getCreateTimestamp()
public long getNanoTime()
nanoTimesSystem.nanoTime()