de.jw.cloud42.core.eventing.subscription
Class Subscription

java.lang.Object
  extended by de.jw.cloud42.core.eventing.subscription.Subscription
Direct Known Subclasses:
SOAPSubscription

public abstract class Subscription
extends java.lang.Object

A Subscription entity saves information belonging to a subscribing endpoint, such as its subscription id. The method sendEventData is used to send notification messages. The concrete format and transport protocol are definded in concrete implementations of this class.


Constructor Summary
Subscription()
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getTopic()
           
abstract  void sendEventData(Message eventData)
          Send data to subscribing endpoint.
 void setId(java.lang.String id)
           
 void setTopic(java.lang.String topic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription()
Method Detail

getId

public java.lang.String getId()
Returns:
the subscription id.

getTopic

public java.lang.String getTopic()
Returns:
the topic of the subscription.

setId

public void setId(java.lang.String id)
Parameters:
id - the subscription id to set.

setTopic

public void setTopic(java.lang.String topic)
Parameters:
topic - the topic to set.

sendEventData

public abstract void sendEventData(Message eventData)
                            throws java.lang.Exception
Send data to subscribing endpoint.

Parameters:
eventData - the message to be transformed and sent.
Throws:
java.lang.Exception


Copyright © 2010 just works! Software. All Rights Reserved.