Profile豆浆油条BlogLists Tools Help
    October 27

    如何通信(4)

    为了在队列同步时尽量减少冗余的数据甚至频繁的远程访问,比如在summary上ontext的时候希望更新currenteventDP,但是同样的会希望提交更改,可是这样的话每写一个字就多一个remotecall,即便是做出了负载平衡,但是用户甚至保留页面至(操作数*interval)时间,简直十分荒唐。
    所以我昨天添加了客户端产生uuid的方法,并且有了包装成js类送回服务器的通用包装类,这样的一个wrapEvent通过此uuid唯一认证,那么我更新了enqueue方法(见于上一entry)。splice掉了旧的还没有同步出去的内容。
    服务器得到的大致是:
    {event={end={hour=10, day=30, year=2005, month=10, minute=0}, summary=%E6%96%B0%E4%BB%BB%E5%8A%A1, uuid=1130393815218, category=, comment=, start={hour=9, day=30, year=2005, month=10, minute=0}}, action=new}
    这样一个java.util.Hashtable对象

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://b051.spaces.live.com/blog/cns!9E2D0BC71827D4E9!240.trak
    Weblogs that reference this entry
    • None