 Insert the word persistent before the monitor declaration for each monitor written in EPL that you want to be persistent. For example:
Insert the word persistent before the monitor declaration for each monitor written in EPL that you want to be persistent. For example: Optionally, define onBeginRecovery() and onConcludeRecovery() actions in your persistent monitors. The correlator executes any such actions as part of the recovery process. To determine whether you need to define these actions, see  
    Designing applications for persistence-enabled correlators, 
    Defining recovery actions and 
    Sample code for persistence applications.
Optionally, define onBeginRecovery() and onConcludeRecovery() actions in your persistent monitors. The correlator executes any such actions as part of the recovery process. To determine whether you need to define these actions, see  
    Designing applications for persistence-enabled correlators, 
    Defining recovery actions and 
    Sample code for persistence applications. Specify one or more persistence options when you start the correlator. To enable correlator persistence, you specify one of the following:
Specify one or more persistence options when you start the correlator. To enable correlator persistence, you specify one of the following: the -P or -Penabled=true option, or
the -P or -Penabled=true option, or the --config option together with the name of a YAML configuration file that contains the following definition:
the --config option together with the name of a YAML configuration file that contains the following definition: If you are using both correlator persistence and the compiled runtime (--runtime compiled option), we recommend the use of the --runtime-cache option to improve recovery times. For more information on these options, see 
    Starting the correlator.
If you are using both correlator persistence and the compiled runtime (--runtime compiled option), we recommend the use of the --runtime-cache option to improve recovery times. For more information on these options, see 
    Starting the correlator.| Correlator Persistence Behavior | Default | Option for Changing | 
| The correlator waits a specified length of time between snapshots. | 200 milliseconds | -PsnapshotIntervalMillis=interval Or the corresponding option in a YAML configuration file: snapshotIntervalMillis: interval Specify an integer that indicates the number of milliseconds to wait. | 
| The correlator can automatically adjust the snapshot interval according to application behavior. It can be useful to set this to false to diagnose a problem or test a new feature. | true. The correlator automatically adjusts the snapshot interval. | -PadjustSnapshot=boolean Or the corresponding option in a YAML configuration file: adjustSnapshot: boolean | 
| The correlator puts the recovery datastore in a specified directory. | The directory in which the correlator was started. That is, the current directory. | -PstoreLocation=path Or the corresponding option in a YAML configuration file: storeLocation: path You can specify an absolute or relative path. The directory must exist. | 
| The correlator copies the snapshot into a specified file. This is the recovery datastore. | persistence.db | -PstoreName=filename Or the corresponding option in a YAML configuration file: storeName: filename Specify a filename without a path. | 
| For correlators that use an external clock, the correlator uses a specified time of day as its starting time when it restarts. This behavior is useful only for replaying input logs that contain recovery information. | The time of day captured in the last committed snapshot. | -XrecoveryTime num To change the default, specify an integer that indicates seconds since the epoch. | 
| The correlator can automatically copy the recovery datastore to the input log when a persistence-enabled correlator restarts. | The correlator copies the recovery datastore to the input log. | -noDatabaseInReplayLog Or the corresponding option in a YAML configuration file: includeDatabaseInInputLog You might set this option if you are using an input log as a record of what the correlator received. The recovery datastore is a large overhead that you probably do not need. Or, if you maintain an independent copy of the recovery datastore, you probably do not want a copy of it in the input log. |