Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cocoon.profiling.data
Interface ProfilingIdGenerator

All Known Implementing Classes:
  UUIDProfilingIdGenerator

    public interface ProfilingIdGenerator

The `ProfilingIdGenerator` has to work thread dependent. So the id generated by `create()` should only be retrievable by calls to `getCurrent()` and removable by calls to `remove()` from the same thread. The id for one thread has to be equal for all calls to `getCurrent()` between an initial call to `create()` and a call to `remove()`. Ids should be unique within a reasonable amount of time.

Method Summary
`String` | `create()` Creates and returns a new id for the current thread.
`String` | `getCurrent()` Get the current id for the current thread.
`void` | `remove()` Discard the id for the current thread.

Method Detail

### create

    String create()

  Creates and returns a new id for the current thread.

  Returns:
    the newly created id.

### getCurrent

    String getCurrent()

  Get the current id for the current thread.

  Returns:
    the current id for the current thread, or null if none has been created or remove was called.

### remove

    void remove()

  Discard the id for the current thread.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.