de.jw.cloud42.core.eventing.subscription
Class Subscription
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Subscription
public Subscription()
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.