Class DefaultKeyGenerator
java.lang.Object
com.trendyol.jdempotent.core.generator.DefaultKeyGenerator
- All Implemented Interfaces:
KeyGenerator
public class DefaultKeyGenerator extends Object implements KeyGenerator
-
Constructor Summary
Constructors Constructor Description DefaultKeyGenerator()
-
Method Summary
Modifier and Type Method Description IdempotencyKey
generateIdempotentKey(IdempotentRequestWrapper requestObject, String listenerName, StringBuilder builder, MessageDigest messageDigest)
Generates a idempotent key for incoming event
-
Constructor Details
-
DefaultKeyGenerator
public DefaultKeyGenerator()
-
-
Method Details
-
generateIdempotentKey
public IdempotencyKey generateIdempotentKey(IdempotentRequestWrapper requestObject, String listenerName, StringBuilder builder, MessageDigest messageDigest)Generates a idempotent key for incoming event- Specified by:
generateIdempotentKey
in interfaceKeyGenerator
- Parameters:
requestObject
-listenerName
-builder
-messageDigest
-- Returns:
-