Interface LiveSyncResultsHandler
-
- All Known Implementing Classes:
LiveSyncImpl.AttributesToGetLiveSyncResultsHandler
,NormalizingLiveSyncResultsHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface LiveSyncResultsHandler
Callback interface that an application implements in order to handle results fromLiveSyncApiOp
in a stream-processing fashion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handle(LiveSyncDelta delta)
Called to handle a delta in the stream.
-
-
-
Method Detail
-
handle
boolean handle(LiveSyncDelta delta)
Called to handle a delta in the stream. The Connector framework will call this method multiple times, once for each result. Although this method is callback, the framework will invoke it synchronously. Thus, the framework guarantees that once an application's call toLiveSyncApiOp#sync()
returns, the framework will no longer call this method to handle results from thatlivesync
operation.- Parameters:
delta
- The change- Returns:
- True if the application wants to continue processing more results.
- Throws:
RuntimeException
- If the application encounters an exception. This will stop iteration and the exception will propagate to the application.
-
-