Package com.persequor.extension.acquire
Interface IAcquireService
- All Known Implementing Classes:
Acquire
public interface IAcquireService
This service allows extension to push events to Saga.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acquireDocument
(BaseEpcisDocument document) Push an EPCIS document into Saga from an extension pointvoid
acquireDocument
(InputStream document) Push an EPCIS document into Saga from an extension pointvoid
acquireEvent
(Event event) This will push a single event as one EPCIS document.default void
acquireEvents
(Event... events) void
acquireEvents
(EventList events) This will push a list of Events to Saga encapsulated in an EPCIS document.
-
Method Details
-
acquireEvent
This will push a single event as one EPCIS document.- Parameters:
event
- to be consumed by Saga.- Throws:
DocumentException
- if something is wrong with the documentSerializationException
- if deserialization of the document fails
-
acquireEvents
This will push a list of Events to Saga encapsulated in an EPCIS document.- Parameters:
events
- events to be consumed by Saga.- Throws:
DocumentException
- if something is wrong with the documentSerializationException
- if deserialization of the document fails
-
acquireEvents
-
acquireDocument
Push an EPCIS document into Saga from an extension point- Parameters:
document
- the epcis document for Saga to consume.- Throws:
DocumentException
- if something is wrong with the documentSerializationException
- if deserialization of the document fails
-
acquireDocument
Push an EPCIS document into Saga from an extension point- Parameters:
document
- the EPCIS document for Saga to consume.- Throws:
DocumentException
- if something is wrong with the documentSerializationException
- if deserialization of the document fails
-