org.openbandy.event
Class Event
java.lang.Object
org.openbandy.event.Event
- Direct Known Subclasses:
- IncomingMessageEvent, TestEvent
public class Event
- extends java.lang.Object
This is the representation of an Event. Note that every Event
has a validity . Events in storage which are older than
(creationTime + validity) will be removed from storage. Events where
validity = INFINIT_VALIDITY will remain.
(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.
- Version:
- 1.0
- Author:
- Philipp Bolliger (philipp@bolliger.name)
Constructor Summary |
Event()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_VALIDITY
public static final int DEFAULT_VALIDITY
- See Also:
- Constant Field Values
Event
public Event()
getCreationTime
public long getCreationTime()
- Returns:
- Returns a timestamp when the event has been created.
getValidity
public int getValidity()
- Returns:
- Returns an int value indicating for how many minutes
the event will be valid.
setValidity
public void setValidity(int validity)
- Set the validity of the Event in minutes
- Parameters:
validity
- Event validity in minutes