public class InteractionService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
interactionType |
protected static int |
MAX_FAILURE |
protected ModelService |
modelService |
protected ODataService |
oDataService |
protected int |
readBatchSize |
protected RecommendationBufferService |
recommendationBufferService |
protected UserContextService |
userContextService |
| Constructor and Description |
|---|
InteractionService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
postInteraction(SAPRecoClickthroughModel model)
Send a single clickthrough entry via OData service
|
void |
saveClickthrough(InteractionContext interactionContext)
Save a clickthrough to database
|
void |
sendInteractions()
Send all clickthrough records via OData service
|
void |
setInteractionType(java.lang.String interactionType) |
void |
setModelService(ModelService modelService) |
void |
setODataService(ODataService oDataService) |
void |
setReadBatchSize(int readBatchSize) |
void |
setRecommendationBufferService(RecommendationBufferService recommendationBufferService) |
void |
setUserContextService(UserContextService userContextService) |
protected static final int MAX_FAILURE
protected java.lang.String interactionType
protected ModelService modelService
protected ODataService oDataService
protected int readBatchSize
protected RecommendationBufferService recommendationBufferService
protected UserContextService userContextService
public boolean postInteraction(SAPRecoClickthroughModel model)
model - SAPRecoClickthroughModelpublic void saveClickthrough(InteractionContext interactionContext)
interactionContext - InteractionContextpublic void sendInteractions()
public void setInteractionType(java.lang.String interactionType)
public void setModelService(ModelService modelService)
public void setODataService(ODataService oDataService)
public void setReadBatchSize(int readBatchSize)
public void setRecommendationBufferService(RecommendationBufferService recommendationBufferService)
public void setUserContextService(UserContextService userContextService)
Copyright © 2018 SAP SE. All Rights Reserved.