com.tibco.cep.runtime.model.element

## Interface PropertyAtomLong

-     public interface PropertyAtomLong

  Property that contains one long.
  Since:
    2.0.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getLong()` Gets the current value of this property.
    `long` | `getLong(long time)` Gets the value that property had at the given time.
    `long` | `getLongAtIdx(int idx)` Gets the value of this property at the given history index.
    `boolean` | `setLong(long value)` Sets the current value of this property.
    `boolean` | `setLong(long value, long time)` Sets the value of this property with a given time.

- - ### Method Detail

    - #### getLong

          long getLong()

      Gets the current value of this property.
      Returns:
        the current value of this property.
      Since:
        2.0.0

    - #### getLong

          long getLong(long time)

      Gets the value that property had at the given time.
      Parameters:
        `time` - a time expressed in number of milliseconds since the epoch.
      Returns:
        a `long` value.
      Throws:
        `PropertyException` - if the value at the given time is unknown.
      Since:
        2.0.0

    - #### getLongAtIdx

          long getLongAtIdx(int idx)

      Gets the value of this property at the given history index.
      Parameters:
        `idx` - index in the history of this property.
      Returns:
        the value of this property at the given index.
      Throws:
        `PropertyException` - if the index is invalid.
      Since:
        2.0.0
      See Also:
        `Property#getHistoryPolicy()`, `Property#getHistorySize()`

    - #### setLong

          boolean setLong(long value)

      Sets the current value of this property.
      Parameters:
        `value` - the value to set
      Returns:
        true if a new entry was added in the history for this value.
      Since:
        2.0.0
      See Also:
        `Property#getHistoryPolicy()`

    - #### setLong

          boolean setLong(long value,
                          long time)

      Sets the value of this property with a given time.
      Parameters:
        `value` - the value to set.
        `time` - the time to associate with the value.
      Returns:
        true if a new entry was added in the history for this value.
      Since:
        2.0.0
      See Also:
        `Property#getHistoryPolicy()`