ch.elca.el4j.core.correlationId
Interface CorrelationIdManager

All Known Implementing Classes:
CorrelationIdManagerSlf4jImpl

public interface CorrelationIdManager

Provides the functionality to set and get the current correlation id. Usually implementations will be available as Spring bean under the name 'correlationIdManager'.

Author:
Simon Stelling (SST)
File-location:
CorrelationIdManager
Last check-in date:
2010-12-21 11:08:04 +0100 (Di, 21. Dez 2010) by swismer for revision 4253

Method Summary
 void clearCurrentCorrelationId()
          Clears the correlation id.
 void createNewCorrelationId()
          generates a new correlation Id value and sets it as the new current value.
 String getCurrentCorrelationId()
           
 void setCurrentCorrelationId(String correlationId)
          sets the current correlation id to the specified value.
 

Method Detail

setCurrentCorrelationId

void setCurrentCorrelationId(String correlationId)
sets the current correlation id to the specified value.

Parameters:
correlationId - the new value

createNewCorrelationId

void createNewCorrelationId()
generates a new correlation Id value and sets it as the new current value.


clearCurrentCorrelationId

void clearCurrentCorrelationId()
Clears the correlation id. Subsequent calls to getCurrentCorrelationId() will return null until setCurrentCorrelationId() or createNewCorrelationId() are called.


getCurrentCorrelationId

String getCurrentCorrelationId()
Returns:
the current correlation id


Copyright © 2005-2011 ELCA. All Rights Reserved.