/// <summary> /// Override to submit a task to use the thread pool given to the constructor. /// Also wrap the supplied onData, onTimeout and onNetworkNack callbacks in an /// outer callback which submits a task to the thread pool to call the supplied /// callback. See Face.expressInterest for calling details. /// </summary> /// public override long expressInterest(Interest interest_0, OnData onData, OnTimeout onTimeout, OnNetworkNack onNetworkNack, WireFormat wireFormat_1) { long pendingInterestId_2 = node_.getNextEntryId(); // Wrap callbacks to submit to the thread pool. OnData finalOnData_3 = onData; OnData onDataSubmit_4 = new ThreadPoolFace.Anonymous_C14(this, finalOnData_3); OnTimeout finalOnTimeout_5 = onTimeout; OnTimeout onTimeoutSubmit_6 = (onTimeout == null) ? null : new ThreadPoolFace.Anonymous_C13(this, finalOnTimeout_5); OnNetworkNack finalOnNetworkNack_7 = onNetworkNack; OnNetworkNack onNetworkNackSubmit_8 = (onNetworkNack == null) ? null : new ThreadPoolFace.Anonymous_C12(this, finalOnNetworkNack_7); // Make an interest copy as required by Node.expressInterest. Interest interestCopy_9 = new Interest(interest_0); threadPool_.submit(new ThreadPoolFace.Anonymous_C11(this, onNetworkNackSubmit_8, interestCopy_9, onDataSubmit_4, pendingInterestId_2, wireFormat_1, onTimeoutSubmit_6)); return(pendingInterestId_2); }
public Anonymous_C24(ThreadPoolFace.Anonymous_C14 paramouter_Anonymous_C14, Interest localInterest_0, Data data_1) { this.localInterest = localInterest_0; this.data = data_1; this.outer_Anonymous_C14 = paramouter_Anonymous_C14; }
/// <summary> /// Override to submit a task to use the thread pool given to the constructor. /// Also wrap the supplied onData, onTimeout and onNetworkNack callbacks in an /// outer callback which submits a task to the thread pool to call the supplied /// callback. See Face.expressInterest for calling details. /// </summary> /// public override long expressInterest(Interest interest_0, OnData onData, OnTimeout onTimeout, OnNetworkNack onNetworkNack, WireFormat wireFormat_1) { long pendingInterestId_2 = node_.getNextEntryId(); // Wrap callbacks to submit to the thread pool. OnData finalOnData_3 = onData; OnData onDataSubmit_4 = new ThreadPoolFace.Anonymous_C14 (this, finalOnData_3); OnTimeout finalOnTimeout_5 = onTimeout; OnTimeout onTimeoutSubmit_6 = (onTimeout == null) ? null : new ThreadPoolFace.Anonymous_C13 (this, finalOnTimeout_5); OnNetworkNack finalOnNetworkNack_7 = onNetworkNack; OnNetworkNack onNetworkNackSubmit_8 = (onNetworkNack == null) ? null : new ThreadPoolFace.Anonymous_C12 (this, finalOnNetworkNack_7); // Make an interest copy as required by Node.expressInterest. Interest interestCopy_9 = new Interest(interest_0); threadPool_.submit(new ThreadPoolFace.Anonymous_C11 (this, onNetworkNackSubmit_8, onDataSubmit_4, interestCopy_9, onTimeoutSubmit_6, pendingInterestId_2, wireFormat_1)); return pendingInterestId_2; }