Class DefaultITextProductEventProcessor
java.lang.Object
com.itextpdf.commons.actions.processors.AbstractITextProductEventProcessor
com.itextpdf.commons.actions.processors.DefaultITextProductEventProcessor
- All Implemented Interfaces:
ITextProductEventProcessor
Defines a default strategy of product event processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicLong
private final AtomicLong
private final Object
private static final org.slf4j.Logger
private static final int
(package private) static final byte[]
private static final long[]
private final AtomicLong
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultITextProductEventProcessor
(String productName) Creates an instance of product event processor. -
Method Summary
Modifier and TypeMethodDescription(package private) long
acquireRepeatLevel
(int lvl) Gets the usage type of the product to which this processor corresponds.void
Handles theAbstractProductProcessITextEvent
.Methods inherited from class com.itextpdf.commons.actions.processors.AbstractITextProductEventProcessor
getProducer, getProductName
-
Field Details
-
MESSAGE_FOR_LOGGING
static final byte[] MESSAGE_FOR_LOGGING -
LOGGER
private static final org.slf4j.Logger LOGGER -
REPEAT
private static final long[] REPEAT -
MAX_LVL
private static final int MAX_LVL -
lock
-
counter
-
level
-
repeatLevel
-
-
Constructor Details
-
DefaultITextProductEventProcessor
Creates an instance of product event processor.- Parameters:
productName
- is a product name
-
-
Method Details
-
onEvent
Description copied from interface:ITextProductEventProcessor
Handles theAbstractProductProcessITextEvent
.- Specified by:
onEvent
in interfaceITextProductEventProcessor
- Specified by:
onEvent
in classAbstractITextProductEventProcessor
- Parameters:
event
- to handle
-
getUsageType
Description copied from interface:ITextProductEventProcessor
Gets the usage type of the product to which this processor corresponds.- Specified by:
getUsageType
in interfaceITextProductEventProcessor
- Specified by:
getUsageType
in classAbstractITextProductEventProcessor
- Returns:
- the usage type
-
acquireRepeatLevel
long acquireRepeatLevel(int lvl)
-