Configuring Before-images Streaming

Learn to configure streaming before-images using the Oracle NoSQL Database Streams API.

You can optionally configure the subscription to enable before-images in the streamed events using the setIncludeBeforeImage() method as follows:

final NoSQLSubscriptionConfig subConfig =
    new NoSQLSubscriptionConfig.Builder("ChkptTable")
    .setSubscribedTables("UserTable")
    .setStreamMode(NoSQLStreamMode.FROM_NOW)
    .setIncludeBeforeImage(true)
    .build();

As a pre-requisite, you must have enabled before-images generation for the subscribed table. For details, see Enabling Before-images During Table Creation