com.atlassian.confluence.util.profiling
Interface Split

All Superinterfaces:
java.io.Closeable

public interface Split
extends java.io.Closeable

Represents a split time associated with a stopwatch. To record the end of a split, call Closeable.close().


Method Summary
 Split stop()
          Stops the timing split.
 Split storeAttribute(java.lang.String name, java.lang.String value)
          Stores an attribute with the recorded split.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

stop

Split stop()
Stops the timing split. This method is also called by Closeable.close().

Returns:
this instance

storeAttribute

Split storeAttribute(java.lang.String name,
                     java.lang.String value)
Stores an attribute with the recorded split. This can be useful for diagnostic information like the user id or page id associated with the split. Keep the length of the name and value parameters to a minimum as they maybe retained in memory if the split time is a minimum or maximum for the associated stopwatch.

Parameters:
name - the name of the attribute
value - the value to associate.
Returns:
this instance


Copyright © 2003-2014 Atlassian. All Rights Reserved.