<p>Finally I found the solution.
Check CARSkit alg</p>

<p><a href="http://arxiv.org/pdf/1511.03780v1.pdf" rel="nofollow">http://arxiv.org/pdf/1511.03780v1.pdf</a></p>
mahout recommender increase input parameter
<p>I need to build recommender with UserId,ItemId,Preference,Duration as input where Duration is the time(Time the user viewed the page). Already i build itembased and userbased recommender with userid,itemid,preference as input. So i need to increase the input parameter which affects the recommendation.</p>

<p>For example- 1012,112,4.0,3.45 is my input. </p>

<p>where 1012 is userid
       112 is itemid
       4.0 is preference
      3.45 is duration </p>

<p>Thanks for the guidance in advance.</p>