org.apache.tamaya.events

## Interface ConfigEvent<T>

- Type Parameters:
    `T` - the resource type.
  All Known Implementing Classes:
    BaseConfigEvent, ConfigurationChange, ConfigurationContextChange, PropertySourceChange

      public interface ConfigEvent<T>

  Event that contains a set current changes that were applied or could be applied.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `getResource()` Get the underlying property provider/configuration.
    `Class<T>` | `getResourceType()` Access the type of resource.
    `long` | `getTimestamp()` Get the timestamp in millis from the current epoch. it is expected that the timestamp and the version are unique to identify a changeset.
    `String` | `getVersion()` Get the version relative to the observed resource.

- - ### Method Detail

    - #### getResourceType

          Class<T> getResourceType()

      Access the type of resource. This allows to easily determine the resource an event wants to observe.
      Returns:
        the resource type.

    - #### getResource

          T getResource()

      Get the underlying property provider/configuration.
      Returns:
        the underlying property provider/configuration, never null.

    - #### getVersion

          String getVersion()

      Get the version relative to the observed resource. The version is required to be unique for each change emmitted for a resource. There is no further requirement how this uniqueness is modelled, so returning a UUID is a completely valid strategy.
      Returns:
        the base version.

    - #### getTimestamp

          long getTimestamp()

      Get the timestamp in millis from the current epoch. it is expected that the timestamp and the version are unique to identify a changeset.
      Returns:
        the timestamp, when this changeset was created.

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.