RTI Connext Java API Version 7.2.0
PersistentJournalKind Class Reference

Sets the journal mode of the persistent storage. More...

Inheritance diagram for PersistentJournalKind:
Enum Copyable

Static Public Attributes

static final PersistentJournalKind TRUNCATE_PERSISTENT_JOURNAL
 Commits transactions by truncating the rollback journal to zero-length instead of deleting it. More...
 
static final PersistentJournalKind PERSIST_PERSISTENT_JOURNAL
 Prevents the rollback journal from being deleted at the end of each transaction. Instead, the header of the journal is overwritten with zeros. More...
 
static final PersistentJournalKind MEMORY_PERSISTENT_JOURNAL
 Stores the rollback journal in volatile RAM. This saves disk I/O. More...
 
static final PersistentJournalKind WAL_PERSISTENT_JOURNAL
 Uses a write-ahead log instead of a rollback journal to implement transactions. More...
 
static final PersistentJournalKind OFF_PERSISTENT_JOURNAL
 Completely disables the rollback journal. If the application crashes in the middle of a transaction when the OFF journaling mode is set, the persistent storage will very likely be corrupted. More...
 

Additional Inherited Members

- Public Member Functions inherited from Enum
final int ordinal ()
 The integral value of this enumerated constant. More...
 
Object copy_from (Object src)
 
final String name ()
 The name of this enum constant, as declared in the enum declaration. More...
 
final String toString ()
 The string value of this enum constant. More...
 
Object copy_from (Object src)
 Copy value of a data type from source. More...
 
- Protected Member Functions inherited from Enum
 Enum (String name, int ordinal)
 The constructor. More...
 
final Object clone () throws CloneNotSupportedException
 

Detailed Description

Sets the journal mode of the persistent storage.

The rollback journal is used in SQLite to store the state of the persistent storage before a transaction is committed.

QoS:
com.rti.dds.infrastructure.DurabilityQosPolicy

Member Data Documentation

◆ TRUNCATE_PERSISTENT_JOURNAL

final PersistentJournalKind TRUNCATE_PERSISTENT_JOURNAL
static
Initial value:
=
new PersistentJournalKind("TRUNCATE_PERSISTENT_JOURNAL", 1)

Commits transactions by truncating the rollback journal to zero-length instead of deleting it.

◆ PERSIST_PERSISTENT_JOURNAL

final PersistentJournalKind PERSIST_PERSISTENT_JOURNAL
static
Initial value:
=
new PersistentJournalKind("PERSIST_PERSISTENT_JOURNAL", 2)

Prevents the rollback journal from being deleted at the end of each transaction. Instead, the header of the journal is overwritten with zeros.

◆ MEMORY_PERSISTENT_JOURNAL

final PersistentJournalKind MEMORY_PERSISTENT_JOURNAL
static
Initial value:
=
new PersistentJournalKind("MEMORY_PERSISTENT_JOURNAL", 3)

Stores the rollback journal in volatile RAM. This saves disk I/O.

◆ WAL_PERSISTENT_JOURNAL

final PersistentJournalKind WAL_PERSISTENT_JOURNAL
static
Initial value:
=
new PersistentJournalKind("WAL_PERSISTENT_JOURNAL", 4)

Uses a write-ahead log instead of a rollback journal to implement transactions.

◆ OFF_PERSISTENT_JOURNAL

final PersistentJournalKind OFF_PERSISTENT_JOURNAL
static
Initial value:
=
new PersistentJournalKind("OFF_PERSISTENT_JOURNAL", 5)

Completely disables the rollback journal. If the application crashes in the middle of a transaction when the OFF journaling mode is set, the persistent storage will very likely be corrupted.