LOG.fine("Updating expiring time to happen in " + timetolive + " seconds on endpoint " + endpoint
+ " for service " + serviceName + "...");
}
if (timetolive < 0) {
throw new WrongArgumentException("Time-to-live cannot be negative.");
}
if (timetolive == 0) {
throw new WrongArgumentException("Time-to-live cannot be zero.");
}
RootNode rootNode = getBackend().connect();
ServiceNode serviceNode = rootNode.getServiceNode(serviceName);
EndpointNode endpointNode = serviceNode.getEndPoint(endpoint);