/** * Unregister a set of service endpoints previously registered. * * @return boolean true if service registration handle was present, false otherwise */ public boolean unregister() { if (serviceRegistrationHandle.isPresent()) { registrar.unregister(serviceRegistrationHandle.get()); serviceRegistrationHandle = Optional.absent(); return true; } return false; }
/** * Unregister a set of service endpoints previously registered. * * @return boolean true if service registration handle was present, false otherwise */ public boolean unregister() { if (serviceRegistrationHandle.isPresent()) { registrar.unregister(serviceRegistrationHandle.get()); serviceRegistrationHandle = Optional.absent(); return true; } return false; }