Package oracle.pgx.api
Interface Synchronizer
-
- All Known Implementing Classes:
FlashbackSynchronizer
public interface SynchronizerSynchronizes changes in an external data source with a PGX graph.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSynchronizer.Builder<T extends Synchronizer>Builder class forSynchronizerobjects.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PgxGraphapply()Applies the changes to the underlying PGX graph.voidfetch()Fetches the changes from the external data source.GraphDeltagetGraphDelta()Get the description of the delta between current snapshot and the fetched changes.default PgxGraphsync()Synchronize changes from the external data source.
-
-
-
Method Detail
-
fetch
void fetch() throws java.sql.SQLExceptionFetches the changes from the external data source. You can call this multiple times to accumulate deltas. The deltas reset once you callapply().- Throws:
java.sql.SQLException
-
apply
PgxGraph apply()
Applies the changes to the underlying PGX graph. Requirefetch()to be called first.- Returns:
- the new snapshot of the graph with the fetched changes applied.
-
getGraphDelta
GraphDelta getGraphDelta()
Get the description of the delta between current snapshot and the fetched changes. Can be used to make a decision for when to apply the delta.- Returns:
- the description of the delta.
-
-