org.gcube.common.core.utils.handlers.events
Class Event<TOPIC extends Topic,PAYLOAD>

java.lang.Object
  extended by org.gcube.common.core.utils.events.GCUBEEvent<TOPIC,PAYLOAD>
      extended by org.gcube.common.core.utils.handlers.events.Event<TOPIC,PAYLOAD>
Direct Known Subclasses:
Event.LifetimeEvent

public abstract class Event<TOPIC extends Topic,PAYLOAD>
extends GCUBEEvent<TOPIC,PAYLOAD>

Abstract specialisation of GCUBEEvent for events about Topics.

Subclasses may specialise the topic and payload of events, though the must implement toString() for the benefit of generic consumers.

Author:
Fabio Simeoni (University of Strathclyde)
See Also:
Monitor

Nested Class Summary
static class Event.Done
          Specialises Event.LifetimeEvent for events that signal that the execution of a handler has successfully completed.
static class Event.Failed
          Specialises Event.LifetimeEvent for events that signal that the execution of a handler has failed.
static class Event.LifetimeEvent
          Abstract specialisation of Event for lifetime events.
static class Event.Running
          Specialises Event.LifetimeEvent for events that signal that the execution of a handler has started or resumed.
static class Event.Suspended
          Specialises Event.LifetimeEvent for events that signal that the execution of a handler is suspended.
 
Field Summary
 
Fields inherited from class org.gcube.common.core.utils.events.GCUBEEvent
payload, producer, timeStamp, topic
 
Constructor Summary
Event()
           
 
Method Summary
 String toString()
          
 
Methods inherited from class org.gcube.common.core.utils.events.GCUBEEvent
getPayload, getProducer, getTimeStamp, getTopic, isExpired, setPayload, setProducer, setTopic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Method Detail

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.