|
Valescom Java API | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--com.valescom.support.store.java.BaseIdentifyable
|
+--com.valescom.support.subscription.java.BasePublication
|
+--com.valescom.support.event.java.Event
Event myEvent = new LocalEvent();
myEvent.publish();

| Constructor Summary | |
|---|---|
protected |
Event()
|
protected |
Event(Event anEvent)
|
protected |
Event(String anId)
|
| Method Summary | |
|---|---|
long |
getTimestamp()
Returns the timestamp for this Event in milliseconds. |
long |
getTimeToLive()
Returns the time to live for this Event in seconds. |
boolean |
isAuthentic()
Indicates whether this event is authentic or not. |
abstract void |
publish()
Publish this Event to all subscribed EventHandlers that are interested. |
void |
readExternal(ObjectInput anInput)
|
abstract boolean |
remote()
Get the remote of this Event. |
void |
setCategories(Categories aCategories)
Set the categories for this Event. |
void |
setTimestamp(long aTimestamp)
Set the timestamp for this Event in milliseconds. |
void |
setTimeToLive(long aTimeToLive)
Set the time to live for this Event in seconds. |
void |
writeExternal(ObjectOutput anOutput)
|
| Methods inherited from class com.valescom.support.subscription.java.BasePublication |
|---|
accept, clone, fill, getCategories, tag, toString |
| Methods inherited from class com.valescom.support.store.java.BaseIdentifyable |
|---|
compareTo, equals, getId, hashCode, referred, referred, setId |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.valescom.support.store.java.Identifyable |
|---|
getId, referred, setId |
| Constructor Detail |
protected Event()
protected Event(Event anEvent)
protected Event(String anId)
| Method Detail |
public abstract void publish()
public abstract boolean remote()
public boolean isAuthentic()
public final long getTimestamp()
public final void setTimestamp(long aTimestamp)
aTimestamp - The timestamp to set.public final long getTimeToLive()
public final void setTimeToLive(long aTimeToLive)
aTimeToLive - The time to live to set.public void setCategories(Categories aCategories)
setCategories in class BasePublicationaCategories - The Categories to set.
public void readExternal(ObjectInput anInput)
throws IOException,
ClassNotFoundException
readExternal in class BasePublicationIOException
ClassNotFoundException
public void writeExternal(ObjectOutput anOutput)
throws IOException
writeExternal in class BasePublicationIOException
|
Valescom Java API | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||