java.lang.Objectcom.realtime.crossfire.jxclient.timeouts.Event
public class Event
Stores information of a timeout event.
| Field Summary | |
|---|---|
private long |
timeout
The timeout. |
private TimeoutEvent |
timeoutEvent
The timeout event to execute. |
| Constructor Summary | |
|---|---|
Event(int timeout,
TimeoutEvent timeoutEvent)
Create a new instance. |
|
| Method Summary | |
|---|---|
int |
compareTo(Event o)
|
boolean |
equals(java.lang.Object obj)
|
long |
getTimeout()
Return the timeout. |
TimeoutEvent |
getTimeoutEvent()
Return the timeout event. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final long timeout
System.currentTimeMillis().
@NotNull private final TimeoutEvent timeoutEvent
| Constructor Detail |
|---|
public Event(int timeout,
@NotNull
TimeoutEvent timeoutEvent)
timeout - The timeout in milliseconds; relative to "now".timeoutEvent - The timeout event to execute.| Method Detail |
|---|
public int compareTo(@NotNull
Event o)
compareTo in interface java.lang.Comparable<Event>
public boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectpublic long getTimeout()
@NotNull public TimeoutEvent getTimeoutEvent()
public int hashCode()
hashCode in class java.lang.Object