コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: private org.neo4j.causalclustering.core.consensus.RaftMessages_ReceivedInstantClusterIdAwareMessage<?> wrap(java.time.Instant instant, RaftMessage message)
        private RaftMessages_ReceivedInstantClusterIdAwareMessage <object> Wrap(Instant instant, RaftMessage message)
        {
            return(RaftMessages_ReceivedInstantClusterIdAwareMessage.of(instant, _localClusterId, message));
        }
コード例 #2
0
 internal virtual Optional <Org.Neo4j.causalclustering.core.consensus.RaftMessages_ClusterIdAwareMessage> MaybeCompose(Clock clock, LinkedList <long> terms, LinkedList <ReplicatedContent> contents)
 {
     return(Composer.maybeComplete(terms, contents).map(m => RaftMessages_ReceivedInstantClusterIdAwareMessage.of(clock.instant(), ClusterId, m)));
 }
コード例 #3
0
 private void InitializeInstanceFields()
 {
     _handler      = new LeaderAvailabilityHandler(@delegate, _leaderAvailabilityTimers, _raftMessageTimerResetMonitor, _term);
     _heartbeat    = RaftMessages_ReceivedInstantClusterIdAwareMessage.of(Instant.now(), _clusterId, new RaftMessages_Heartbeat(_leader, _term.AsLong, 0, 0));
     _voteResponse = RaftMessages_ReceivedInstantClusterIdAwareMessage.of(Instant.now(), _clusterId, new RaftMessages_Vote_Response(_leader, _term.AsLong, false));
 }