public Anonymous_C15(ThreadPoolFace.Anonymous_C2 paramouter_Anonymous_C2, long interestFilterId_0, Interest interest_1, Face face_2, InterestFilter filter_3, Name prefix_4) { this.interestFilterId = interestFilterId_0; this.interest = interest_1; this.face = face_2; this.filter = filter_3; this.prefix = prefix_4; this.outer_Anonymous_C2 = paramouter_Anonymous_C2; }
/// <summary> /// Submit a task to the thread pool to add an entry to the local interest /// filter table to call the onInterest callback for a matching incoming /// Interest. This method only modifies the library's local callback table and /// does not register the prefix with the forwarder. It will always succeed. /// To register a prefix with the forwarder, use registerPrefix. /// </summary> /// /// <param name="filter_0"></param> /// <param name="onInterest">onInterest.onInterest(prefix, interest, face, interestFilterId, filter). NOTE: The library will log any exceptions thrown by this callback, but for better error handling the callback should catch and properly handle any exceptions.</param> /// <returns>The interest filter ID which can be used with unsetInterestFilter.</returns> public override long setInterestFilter(InterestFilter filter_0, OnInterestCallback onInterest) { long interestFilterId_1 = node_.getNextEntryId(); // Wrap callbacks to submit to the thread pool. OnInterestCallback finalOnInterest_2 = onInterest; OnInterestCallback onInterestSubmit_3 = new ThreadPoolFace.Anonymous_C2(this, finalOnInterest_2); threadPool_.submit(new ThreadPoolFace.Anonymous_C1(this, filter_0, onInterestSubmit_3, interestFilterId_1)); return(interestFilterId_1); }
public Anonymous_C15(ThreadPoolFace.Anonymous_C2 paramouter_Anonymous_C2, Name prefix_0, Face face_1, InterestFilter filter_2, Interest interest_3, long interestFilterId_4) { this.prefix = prefix_0; this.face = face_1; this.filter = filter_2; this.interest = interest_3; this.interestFilterId = interestFilterId_4; this.outer_Anonymous_C2 = paramouter_Anonymous_C2; }
/// <summary> /// Submit a task to the thread pool to add an entry to the local interest /// filter table to call the onInterest callback for a matching incoming /// Interest. This method only modifies the library's local callback table and /// does not register the prefix with the forwarder. It will always succeed. /// To register a prefix with the forwarder, use registerPrefix. /// </summary> /// /// <param name="filter_0"></param> /// <param name="onInterest">onInterest.onInterest(prefix, interest, face, interestFilterId, filter). NOTE: The library will log any exceptions thrown by this callback, but for better error handling the callback should catch and properly handle any exceptions.</param> /// <returns>The interest filter ID which can be used with unsetInterestFilter.</returns> public override long setInterestFilter(InterestFilter filter_0, OnInterestCallback onInterest) { long interestFilterId_1 = node_.getNextEntryId(); // Wrap callbacks to submit to the thread pool. OnInterestCallback finalOnInterest_2 = onInterest; OnInterestCallback onInterestSubmit_3 = new ThreadPoolFace.Anonymous_C2 (this, finalOnInterest_2); threadPool_.submit(new ThreadPoolFace.Anonymous_C1 (this, onInterestSubmit_3, filter_0, interestFilterId_1)); return interestFilterId_1; }