Class ReplicationDomainDB.ReplicaDbDescription

  • Enclosing interface:
    ReplicationDomainDB

    public static class ReplicationDomainDB.ReplicaDbDescription
    extends Object
    Describes the content of a Replica DB.
    • Constructor Detail

      • ReplicaDbDescription

        public ReplicaDbDescription​(int numberOfFiles,
                                    boolean newestMessageIsReplicaOfflineMessage,
                                    ReplicationDomainDB.ReplicaDbFileContent newestFile)
        Constructs a new ReplicaDbDescription with the specified parameters.
        Parameters:
        numberOfFiles - the number of files in the Replica DB
        newestMessageIsReplicaOfflineMessage - a flag indicating if the newest message is a replica offline message
        newestFile - the content of the newest file in the Replica DB
    • Method Detail

      • getNumberOfFiles

        public int getNumberOfFiles()
        Returns the number of files in the Replica DB.
        Returns:
        the number of files
      • isNewestMessageReplicaOfflineMessage

        public boolean isNewestMessageReplicaOfflineMessage()
        Checks if the newest message is a replica offline message.
        Returns:
        true if the newest message is a replica offline message, false otherwise