Package org.dspace.matomo
Class MatomoSyncEventHandler
java.lang.Object
org.dspace.matomo.MatomoAbstractHandler
org.dspace.matomo.MatomoSyncEventHandler
- All Implemented Interfaces:
MatomoUsageEventHandler
This class represents a sync event handler that will send details one by one 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
ConstructorsConstructorDescriptionMatomoSyncEventHandler(MatomoClient matomoClient, MatomoRequestDetailsBuilder builder) -
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
-
MatomoSyncEventHandler
public MatomoSyncEventHandler(@Autowired MatomoClient matomoClient, @Autowired MatomoRequestDetailsBuilder builder)
-
-
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
-