Package org.serviceconnector.service
Class Subscription
java.lang.Object
org.serviceconnector.service.AbstractSession
org.serviceconnector.service.Subscription
The Class Subscription.
-
Field Summary
Fields inherited from class org.serviceconnector.service.AbstractSession
ipAddressList, server -
Constructor Summary
ConstructorsConstructorDescriptionSubscription(SubscriptionMask mask, String sessionInfo, String ipAddressList, int noDataInterval, double subscriptionTimeoutMillis, boolean cascaded) Instantiates a new subscription. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCscSubscriptionId(String cscSubscriptionId, SubscriptionMask cscMask) Adds the csc subscription id.voiddump(XMLDumpWriter writer) Dump the subscription into the xml writer.Gets the csc subscription ids.getMask()Gets the mask.intGets the no data interval.Gets the server.doubleGets the subscription timeout millis.voidremoveCscSubscriptionId(String cscSubscriptionId) Removes the csc subscription id.voidsetMask(SubscriptionMask mask) Sets the mask.Methods inherited from class org.serviceconnector.service.AbstractSession
getCreationTime, getId, getIpAddressList, getService, getSessionInfo, getTimeout, getTimeouterTask, isCascaded, setServer, setService, setTimeout, setTimeouterTask, toString
-
Constructor Details
-
Subscription
public Subscription(SubscriptionMask mask, String sessionInfo, String ipAddressList, int noDataInterval, double subscriptionTimeoutMillis, boolean cascaded) Instantiates a new subscription.- Parameters:
mask- the masksessionInfo- the session infoipAddressList- the ip address listnoDataInterval- the no data intervalsubscriptionTimeoutMillis- the subscription timeout milliscascaded- the cascaded
-
-
Method Details
-
getMask
Gets the mask.- Returns:
- the mask
-
setMask
Sets the mask.- Parameters:
mask- the new mask
-
getSubscriptionTimeoutMillis
public double getSubscriptionTimeoutMillis()Gets the subscription timeout millis.- Returns:
- the subscription timeout millis
-
getServer
Gets the server.- Overrides:
getServerin classAbstractSession- Returns:
- the server the server
-
getNoDataIntervalMillis
public int getNoDataIntervalMillis()Gets the no data interval.- Returns:
- the no data interval
-
addCscSubscriptionId
Adds the csc subscription id.- Parameters:
cscSubscriptionId- the csc subscription idcscMask- the csc mask
-
removeCscSubscriptionId
Removes the csc subscription id.- Parameters:
cscSubscriptionId- the csc subscription id
-
getCscSubscriptionIds
Gets the csc subscription ids.- Returns:
- the csc subscription ids
-
dump
Dump the subscription into the xml writer.- Specified by:
dumpin classAbstractSession- Parameters:
writer- the writer- Throws:
Exception- the exception
-