iText 7 7.1.8 API
iText.Kernel.Counter.IEventCounterFactory Interface Reference

Factory that can be registered in EventCounterHandler and creates a counter for every reader or writer class. More...

Inheritance diagram for iText.Kernel.Counter.IEventCounterFactory:
iText.Kernel.Counter.SimpleEventCounterFactory iText.Kernel.Counter.SystemOutEventCounterFactory

Public Member Functions

EventCounter  GetCounter (Type cls)
 

Detailed Description

Factory that can be registered in EventCounterHandler and creates a counter for every reader or writer class.

You can implement your own counter factory and register it like this: EventCounterManager.getInstance().registerCounter(new SystemOutEventCounterFactory());

SystemOutEventCounterFactory is just an example of IEventCounterFactory implementation. It creates SystemOutEventCounter that writes info about files being read and written to the System.Console.Out

This functionality can be used to create metrics in a SaaS context.