Class SingleIndexRequest<T extends Identifiable>
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.messaging.search.domain.SingleIndexRequest<T>
-
- All Implemented Interfaces:
Serializable
public class SingleIndexRequest<T extends Identifiable> extends Object implements Serializable
For entities that areIndexable
, this is the message payload that will be sent to request indexing on an entity.This should be built by a
SingleIndexRequestMessageBuilder
.- Author:
- Samarth Dhruva (samarthd)
- See Also:
SingleIndexRequestMessageBuilder
,SingleIndexRequestMessageFactory
,SingleIndexRequestProducer
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SingleIndexRequest(T payload, @NonNull Class<?> originatingEntity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
get_class()
The class name of the entity on which a CRUD operation was performed that resulted in this request.T
getPayload()
The payload which will be unwrapped into the final JSON.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getPayload
public T getPayload()
The payload which will be unwrapped into the final JSON. Allows flexibility since an index request may look different for each entity.
-
get_class
public String get_class()
The class name of the entity on which a CRUD operation was performed that resulted in this request. This is not necessarily the entity on which the reindex will actually occur - it may just be a related entity.
-
canEqual
protected boolean canEqual(Object other)
-
-