Package oracle.pgx.api
Class FlashbackSynchronizer
- java.lang.Object
-
- oracle.pgx.api.FlashbackSynchronizer
-
- All Implemented Interfaces:
Synchronizer
public class FlashbackSynchronizer extends java.lang.Object implements Synchronizer
Synchronizes a PGX graph with an Oracle Database using Flashback queries
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oracle.pgx.api.Synchronizer
Synchronizer.Builder<T extends Synchronizer>
-
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.pgx.api.Synchronizer
sync
-
-
-
-
Method Detail
-
fetch
public void fetch() throws java.sql.SQLExceptionDescription copied from interface:SynchronizerFetches the changes from the external data source. You can call this multiple times to accumulate deltas. The deltas reset once you callSynchronizer.apply().- Specified by:
fetchin interfaceSynchronizer- Throws:
java.sql.SQLException
-
apply
public PgxGraph apply()
Description copied from interface:SynchronizerApplies the changes to the underlying PGX graph. RequireSynchronizer.fetch()to be called first.- Specified by:
applyin interfaceSynchronizer- Returns:
- the new snapshot of the graph with the fetched changes applied.
-
getGraphDelta
public GraphDelta getGraphDelta()
Description copied from interface:SynchronizerGet 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.- Specified by:
getGraphDeltain interfaceSynchronizer- Returns:
- the description of the delta.
-
-