Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.jcr.api.monitor
Interface DurationActivity

All Superinterfaces:
  Comparable<DurationActivity>

All Known Implementing Classes:
  RepositoryStatistics.DurationActivity

    public interface DurationActivity

extends Comparable<DurationActivity>

The immutable representation of activities with measureable durations.

Since:
  3.0

Method Summary
`long` | `getDuration(TimeUnit unit)` Get the duration of this activity.
`Map<String,String>` | `getPayload()` Get the payload for this activity.

Methods inherited from interface java.lang.Comparable
`compareTo`

Method Detail

### getDuration

    long getDuration(TimeUnit unit)

  Get the duration of this activity.

  Parameters:
    `unit` - the desired time unit for the duration
  Returns:
    the duration in the specified time unit

### getPayload

    Map<String,String> getPayload()

  Get the payload for this activity.

  Returns:
    the payload; may be null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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