コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void processLog(long commitIndex, java.util.Collection<org.neo4j.causalclustering.core.consensus.outcome.RaftLogCommand> logCommands) throws java.io.IOException
        public virtual void ProcessLog(long commitIndex, ICollection <RaftLogCommand> logCommands)
        {
            foreach (RaftLogCommand logCommand in logCommands)
            {
                logCommand.Dispatch(this);
            }

            if (_state.commit(commitIndex))
            {
                _membershipChanger.onRaftGroupCommitted();
                _storage.persistStoreData(_state);
                UpdateMemberSets();
            }
        }
コード例 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public synchronized void flush() throws java.io.IOException
        public override void Flush()
        {
            lock (this)
            {
                _storage.persistStoreData(State());
            }
        }
コード例 #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: synchronized void flush(long lastApplied) throws java.io.IOException
        internal virtual void Flush(long lastApplied)
        {
            lock (this)
            {
                _coreStateMachines.flush();
                _sessionTracker.flush();
                _lastFlushedStorage.persistStoreData(lastApplied);
            }
        }
コード例 #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void flush() throws java.io.IOException
        public virtual void Flush()
        {
            _sessionTrackerStorage.persistStoreData(_sessionState);
        }