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 AtomicLongprivate final AtomicLongprivate final Objectprivate static final org.slf4j.Loggerprivate 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) longacquireRepeatLevel(int lvl) Gets the usage type of the product to which this processor corresponds.voidHandles theAbstractProductProcessITextEvent.Methods inherited from class 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:ITextProductEventProcessorHandles theAbstractProductProcessITextEvent.- Specified by:
onEventin interfaceITextProductEventProcessor- Specified by:
onEventin classAbstractITextProductEventProcessor- Parameters:
event- to handle
-
getUsageType
Description copied from interface:ITextProductEventProcessorGets the usage type of the product to which this processor corresponds.- Specified by:
getUsageTypein interfaceITextProductEventProcessor- Specified by:
getUsageTypein classAbstractITextProductEventProcessor- Returns:
- the usage type
-
acquireRepeatLevel
long acquireRepeatLevel(int lvl)
-