Package org.dspace.matomo
Class MatomoAsyncBulkRequestHandler
java.lang.Object
org.dspace.matomo.MatomoAbstractHandler
org.dspace.matomo.MatomoAsyncBulkRequestHandler
- All Implemented Interfaces:
MatomoUsageEventHandler
This class groups together
capacity requests that will be sent as one bulk request
using the MatomoClient- Author:
- Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
-
Field Summary
Fields inherited from class org.dspace.matomo.MatomoAbstractHandler
builder, matomoClient -
Constructor Summary
ConstructorsConstructorDescriptionMatomoAsyncBulkRequestHandler(MatomoRequestDetailsBuilder builder, MatomoClient matomoClient, int capacity) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(UsageEvent usageEvent) This method handles theUsageEventin order to send that request to MatomovoidSends all the pending request to the Matomo tracking endpoint.Methods inherited from class org.dspace.matomo.MatomoAbstractHandler
toDetails
-
Constructor Details
-
MatomoAsyncBulkRequestHandler
public MatomoAsyncBulkRequestHandler(@Autowired MatomoRequestDetailsBuilder builder, @Autowired MatomoClient matomoClient, int capacity)
-
-
Method Details
-
handleEvent
Description copied from interface:MatomoUsageEventHandlerThis method handles theUsageEventin order to send that request to Matomo- Specified by:
handleEventin interfaceMatomoUsageEventHandler- Specified by:
handleEventin classMatomoAbstractHandler
-
sendEvents
public void sendEvents()Description copied from interface:MatomoUsageEventHandlerSends all the pending request to the Matomo tracking endpoint.- Specified by:
sendEventsin interfaceMatomoUsageEventHandler- Specified by:
sendEventsin classMatomoAbstractHandler
-