Gets a Long context property.

@param exchange the exchange
@param message the message
@param name the name
@return the property
323226
protected Long getLong(Exchange exchange, Message message, String name) {
        Object value = getObject(exchange, message, name);
        if (value instanceof Long) {
            return (Long)value;
        } else if (value instanceof Number) {
            return Long.valueOf(((Number)value).longValue());
        } else if (value instanceof String) {
            return Long.valueOf(((String)value).trim());
        }
        return null;
    }
678887
public Long getParameterLong(String name, Long defaultValue)
   {
      String value = getParameterValue(name, null);

      if (value != null)
      {
         try
         {
            return StringNumberParser.parseLong(value);
         }
         catch (NumberFormatException e)
         {
            if (LOG.isTraceEnabled())
            {
               LOG.trace("An exception occurred: " + e.getMessage());
            }
         }
      }
      return defaultValue;
   }
808051
public String getTranslatedFieldName(String name) {
        if (xfa.isXfaPresent()) {
            String namex = xfa.findFieldName(name, this);
            if (namex != null)
                name = namex;
        }
        return name;
    }
946029
public static long getLong(java.util.Properties properties,
                               String prop, long defaultVal) {
        String propVal = properties.getProperty(prop);
        return  (propVal != null)
            ? Long.parseLong(propVal)
            : defaultVal;
    }
94269
public static Long getPropertyLong(String key, Long aDefault)
	{
		return getSettings().getPropertyLong(key,aDefault);
	}
68963
def get_event_exchange(service_name):
    
    exchange_name = "{}.events".format(service_name)
    exchange = Exchange(
        exchange_name, type='topic', durable=True, delivery_mode=PERSISTENT
    )

    return exchange
1147305
@Override
    public String getProperty(String name) {
        loadProperties();
        return properties == null ? null : properties.getProperty(name);
    }
308329
public ExchangePublisher<String> createExchangeTextPublisher(final String name)
    {
        Preconditions.checkState(connectionFactory != null, "connection factory was never injected!");
        return new ExchangePublisher<String>(connectionFactory, amqpConfig, name, stringPublisherCallback);
    }
367159
public long getLong(final String name, final long defaultValue) {
    if (containsKey(name)) {
      return Long.parseLong(get(name));
    } else {
      return defaultValue;
    }
  }
808716
public static Long getPropertyLong(Class<?> aClass, String key,  long aDefault)
	{
		return getSettings().getPropertyLong(aClass, key, aDefault);
	}
418489
@Override
    public Object getProperty(String name)
    {
        Object ob = mConfig.getProperty(name);

        if (ob == null) {
            if (name.equals(XMLInputFactory.ALLOCATOR)) {
                // Event allocator not available via J2ME subset...
                return getEventAllocator();
            }
        }
        return ob;
    }
838731
public Object getProperty(String name) {
		if (!StringUtils.isBlank(name)) {
			return getProperties().get(name);
		}
		return null;
	}
724643
@SuppressWarnings("unchecked")
    public static <T> T getProperty(String name) {
        return (T) getRequest().getProperty(name);
    }
1046846
public long getAsLong(final String name, final long defaultValue) {
        return AtsdUtil.getPropertyLongValue(fullName(name), clientProperties, defaultValue);
    }
1209886
public String getProperty(String name) {
        BugProperty prop = lookupProperty(name);
        return prop != null ? prop.getValue() : null;
    }
734048
private Context createContext(String name) {
		Context context = new Context(this, this.nextContextIndex++);
		context.setName(name);
		return context;
	}
592459
protected Property getProperty(String name) {
    if (!properties.containsKey(name)) {
      properties.put(name, new Property(name));
    }
    return properties.get(name);
  }