Package net.avcompris.commons3.core
Interface CorrelationService
public interface CorrelationService
-
Method Summary
Modifier and TypeMethodDescriptiongetCorrelationId
(String correlationIdParam, String correlationIdHeader) Get a non-null correlationId from the HTTP request, or create a new correlationId if needed.void
purgeOlderThanSec
(String correlationId, User user, int seconds)
-
Method Details
-
getCorrelationId
String getCorrelationId(@Nullable String correlationIdParam, @Nullable String correlationIdHeader) throws ServiceException Get a non-null correlationId from the HTTP request, or create a new correlationId if needed.- Parameters:
correlationIdParam
- the "correlationId", if any, passed as a parameter in the HTTP URL’s query (overwrite correlationIdHeader)correlationIdHeader
- the "correlationId", if any, passed as a Header in the HTTP Request- Throws:
ServiceException
-
purgeOlderThanSec
- Throws:
ServiceException
-