Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.causalclustering.core.consensus.outcome.Outcome handle(org.neo4j.causalclustering.core.consensus.RaftMessages_Timeout_Election election) throws java.io.IOException
            public override Outcome Handle(Org.Neo4j.causalclustering.core.consensus.RaftMessages_Timeout_Election election)
            {
                Log.info("Failed to get elected. Got votes from: %s", Ctx.votesForMe());
                if (!Election.StartRealElection(Ctx, Outcome, Log))
                {
                    Log.info("Moving to FOLLOWER state after failing to start election");
                    Outcome.NextRole = FOLLOWER;
                }
                return(Outcome);
            }