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 PgxGraph
apply()
Applies the changes to the underlying PGX graph.void
fetch()
Fetches the changes from the external data source.GraphDelta
getGraphDelta()
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.SQLException
Description copied from interface:Synchronizer
Fetches 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:
fetch
in interfaceSynchronizer
- Throws:
java.sql.SQLException
-
apply
public PgxGraph apply()
Description copied from interface:Synchronizer
Applies the changes to the underlying PGX graph. RequireSynchronizer.fetch()
to be called first.- Specified by:
apply
in interfaceSynchronizer
- Returns:
- the new snapshot of the graph with the fetched changes applied.
-
getGraphDelta
public GraphDelta getGraphDelta()
Description copied from interface:Synchronizer
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.- Specified by:
getGraphDelta
in interfaceSynchronizer
- Returns:
- the description of the delta.
-
-