ModeShape Distribution 3.2.0.Final

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

ModeShape Distribution 3.2.0.Final

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