org.mobicents.slee.sipevent.server.subscription.data
Class Subscription
java.lang.Object
org.mobicents.slee.sipevent.server.subscription.data.Subscription
- All Implemented Interfaces:
- java.io.Serializable
public class Subscription
- extends java.lang.Object
- implements java.io.Serializable
Subscription: A subscription is a set of application state associated
with a dialog. This application state includes a pointer to the
associated dialog, the event package name, and possibly an
identification token. Event packages will define additional
subscription state information. By definition, subscriptions
exist in both a subscriber and a notifier.
This class is JPA pojo for a subscription.
- Author:
- eduardomartins
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Subscription
public Subscription(SubscriptionKey key,
java.lang.String subscriber,
Notifier notifier,
Subscription.Status status,
java.lang.String subscriberDisplayName,
int expires,
boolean resourceList,
SubscriptionControlDataSource dataSource)
- Parameters:
key - subscriber - notifier - status - subscriberDisplayName - expires - resourceList -
getRemainingExpires
public int getRemainingExpires()
getSubscriptionDuration
public int getSubscriptionDuration()
refresh
public void refresh(int expires)
changeStatus
public boolean changeStatus(Subscription.Event event)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getKey
public SubscriptionKey getKey()
getSubscriber
public java.lang.String getSubscriber()
getNotifier
public Notifier getNotifier()
getStatus
public Subscription.Status getStatus()
setStatus
public void setStatus(Subscription.Status status)
getCreationDate
public long getCreationDate()
getLastRefreshDate
public long getLastRefreshDate()
setLastRefreshDate
public void setLastRefreshDate(long lastRefreshDate)
getExpires
public int getExpires()
setExpires
public void setExpires(int expires)
getSubscriberDisplayName
public java.lang.String getSubscriberDisplayName()
getLastEvent
public Subscription.Event getLastEvent()
setLastEvent
public void setLastEvent(Subscription.Event lastEvent)
getTimerID
public javax.slee.facilities.TimerID getTimerID()
setTimerID
public void setTimerID(javax.slee.facilities.TimerID timerID)
getVersion
public int getVersion()
setVersion
public void setVersion(int version)
incrementVersion
public void incrementVersion()
getResourceList
public boolean getResourceList()
setResourceList
public void setResourceList(boolean resourceList)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getDataSource
public SubscriptionControlDataSource getDataSource()
store
public void store()
remove
public void remove()
Copyright © 2010. All Rights Reserved.