//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") private org.neo4j.util.concurrent.AsyncApply sendDownstream(long ticket, Object batch, org.neo4j.util.concurrent.AsyncApply downstreamAsync) private AsyncApply SendDownstream(long ticket, object batch, AsyncApply downstreamAsync) { if (Guarantees(Step_Fields.ORDER_SEND_DOWNSTREAM)) { AsyncApply async = DownstreamWorkSync.applyAsync(new SendDownstream(ticket, batch, DownstreamIdleTime)); if (downstreamAsync != null) { try { downstreamAsync.Await(); async.Await(); return(null); } catch (ExecutionException e) { IssuePanic(e.InnerException); } } else { return(async); } } else { DownstreamIdleTime.add(DownstreamConflict.receive(ticket, batch)); DoneBatches.incrementAndGet(); } return(null); }
internal virtual void SendDownstream(Unit unit) { DownstreamIdleTime.add(DownstreamConflict.receive(unit.Ticket, unit.Batch)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") protected void sendDownstream(Object batch) protected internal virtual void SendDownstream(object batch) { long time = DownstreamConflict.receive(DoneBatches.AndIncrement, batch); DownstreamIdleTime.add(time); }