Class RaygunDuplicateErrorFilterFactory
- java.lang.Object
-
- com.mindscapehq.raygun4java.core.handlers.requestfilters.RaygunDuplicateErrorFilterFactory
-
- All Implemented Interfaces:
IRaygunSendEventFactory
public class RaygunDuplicateErrorFilterFactory extends Object implements IRaygunSendEventFactory
This factory creates the two filters required for duplicate error detection. For duplicate error detection to work, there must be a shared state between the onBefore and onAfter filters so that onAfter can record the error being sent, and onBefore can check it its been sent. As the factory will be called twice to produce a single filter that will be used for both onBefore and onAfter the factory must ensure the same instance is for the onBefore and onAfter calls
-
-
Constructor Summary
Constructors Constructor Description RaygunDuplicateErrorFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RaygunDuplicateErrorFiltercreate()When called twice in a row from the same thread, both calls will receive the same instance, a third call will return a new instance
-
-
-
Method Detail
-
create
public RaygunDuplicateErrorFilter create()
When called twice in a row from the same thread, both calls will receive the same instance, a third call will return a new instance- Specified by:
createin interfaceIRaygunSendEventFactory- Returns:
-
-