org.openbandy.event
Class Event

java.lang.Object
  extended by 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)

Field Summary
static int DEFAULT_VALIDITY
           
 
Constructor Summary
Event()
           
 
Method Summary
 long getCreationTime()
           
 int getValidity()
           
 void setValidity(int validity)
          Set the validity of the Event in minutes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VALIDITY

public static final int DEFAULT_VALIDITY
See Also:
Constant Field Values
Constructor Detail

Event

public Event()
Method Detail

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