Пример #1
0
        /// <summary>
        /// Managing timeouts is trickier than putting all of them in a long list, like regular message delivery.
        ///  Timeouts are ordered and can be cancelled, so they need special treatment. Hence a separate method for
        ///  managing timeouts triggering.
        /// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private org.neo4j.helpers.collection.Pair<ClusterAction, ClusterState> performNextTimeoutFrom(ClusterInstance instance) throws Exception
        private Pair <ClusterAction, ClusterState> PerformNextTimeoutFrom(ClusterInstance instance)
        {
            ClusterState  newState      = Snapshot();
            ClusterAction clusterAction = newState.Instance(instance.Uri().toASCIIString()).popTimeout();

            clusterAction.Perform(newState);

            return(Pair.of(clusterAction, newState));
        }
Пример #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public Iterable<ClusterAction> perform(ClusterState state) throws Exception
        public override IEnumerable <ClusterAction> Perform(ClusterState state)
        {
            state.Instance(_instanceUri).crash();
            return(Iterables.empty());
        }