org.modeshape.jmx

## Class DurationData

- java.lang.Object
- - org.modeshape.jmx.DurationData

-     public class DurationData
      extends Object

  Values holder which exposes `DurationActivity` to JMX.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DurationData(long durationSeconds, Map<String,String> additionalInformation)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,String>` | `getAdditionalInformation()`
    `long` | `getDurationSeconds()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DurationData

          @ConstructorProperties(value={"durationSeconds","payload"})
          public DurationData(long durationSeconds,
                                                 Map<String,String> additionalInformation)

      Parameters:
        `durationSeconds` - the duration value, in seconds.
        `additionalInformation` - a custom map of additional information

  - ### Method Detail

    - #### getDurationSeconds

          public long getDurationSeconds()

      Returns:
        the duration; in seconds

    - #### getAdditionalInformation

          public Map<String,String> getAdditionalInformation()

      Returns:
        a Map of additional information; may be empty but never null.

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.