long timeout = _replyTimeout;
String replyHandle = null;
if (options != null)
{ // We wrap the Map in a QmfData object to avoid potential class cast issues with the parsed options
QmfData optMap = new QmfData(new AddressParser(options).map());
if (optMap.hasValue("lifetime"))
{
lifetime = optMap.getLongValue("lifetime");
}
if (optMap.hasValue("publishInterval"))
{ // Multiply publishInterval by 1000 because the QMF2 protocol spec says interval is
// "The request time (in milliseconds) between periodic updates of data in this subscription"
publishInterval = 1000*optMap.getLongValue("publishInterval");
}
if (optMap.hasValue("timeout"))
{
timeout = optMap.getLongValue("timeout");
}
if (optMap.hasValue("replyHandle"))
{
replyHandle = optMap.getStringValue("replyHandle");
}
}
try
{