亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? endpointservice.java

?? jxta平臺的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright (c) 2001 Sun Microsystems, Inc.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in *    the documentation and/or other materials provided with the *    distribution. * * 3. The end-user documentation included with the redistribution, *    if any, must include the following acknowledgment: *       "This product includes software developed by the *       Sun Microsystems, Inc. for Project JXTA." *    Alternately, this acknowledgment may appear in the software itself, *    if and wherever such third-party acknowledgments normally appear. * * 4. The names "Sun", "Sun Microsystems, Inc.", "JXTA" and "Project JXTA" must *    not be used to endorse or promote products derived from this *    software without prior written permission. For written *    permission, please contact Project JXTA at http://www.jxta.org. * * 5. Products derived from this software may not be called "JXTA", *    nor may "JXTA" appear in their name, without prior written *    permission of Sun. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED.  IN NO EVENT SHALL SUN MICROSYSTEMS OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of Project JXTA.  For more * information on Project JXTA, please see * <http://www.jxta.org/>. * * This license is based on the BSD license adopted by the Apache Foundation. * * $Id: EndpointService.java,v 1.28 2005/11/21 19:50:58 bondolo Exp $ */package net.jxta.endpoint;import java.util.Iterator;import java.io.IOException;import net.jxta.peergroup.PeerGroup;import net.jxta.service.Service;/** * The EndpointService provides the API for sending and receiving messages * between peers. In general, applications and services use the * {@link net.jxta.pipe.PipeService} rather than using this API directly. * **/public interface EndpointService extends Service, EndpointListener {        public static final int LowPrecedence = 0;    public static final int MediumPrecedence = 1;    public static final int HighPrecedence = 2;    /**     * Returns the group to which this EndpointService is attached.     *     * @return PeerGroup the group.     */    public PeerGroup getGroup();        /**     * Returns a messenger to the specified destination. The canonical messenger is shared between all channels which destination     * contains the same protocol name and protocol address, in all groups that have access to the same transport. The     * ChannelMessenger returned is configured to send messages to the specified service name and service param when these are not     * specified at the time of sending.<p/>     *     * The channel will also ensure delivery to this EndpointService's group on arrival. The channel is not shared with any other     * module. That is, each endpoint service interface object (as returned by {@link     * net.jxta.peergroup.PeerGroup#getEndpointService()}) will return a different channel messenger for the same     * destination. However, there is no guarantee that two invocations of the same endpoint service interface object for the same     * destination will return different channel objects. Notably, if the result of a previous invocation is still strongly     * referenced and in a {@link Messenger#USABLE} state, then that is what this method will return.<p/>     *     * This method returns immediately. The messenger is not necessarily resolved (the required underlying connection established,     * for example), and it might never resolve at all.  Changes in the state of a messenger may monitored with {@link     * Messenger#getState} and {@link Messenger#waitState}. One may monitor multiple {@link Messenger messengers} (and {@link     * Message Messages}) at a time by using a {@link net.jxta.util.SimpleSelector}.  One may also arrange to have a listener invoked when     * resolution is complete by using {@link ListenerAdaptor}.<p/>     *     * The hint is interpreted by the transport. The only transport known to consider hints is the endpoint router, and the hint     * is a route.  As a result, if addr is in the form: jxta://uniqueID, then hint may be a RouteAdvertisement.  If that route is     * valid the router will add it to it's cache of route and may then use it to succesfully create a messenger to the given     * destination.  There is no garantee at this time that the route will end up being the one specified, nor that this route     * will be used only for this messenger (likely the opposite), nor that it will remain in use in the future, nor that it will     * be used at all. However, if there is no other route, and if the specified route is valid, it will be used rather than     * seeking an alternative.<p/>     *     * @see net.jxta.endpoint.EndpointAddress     * @see net.jxta.endpoint.ChannelMessenger     *     * @param addr The complete destination address.     * @param hint A hint to be supplied to whichever transport ends-up making the the real messenger. May be null, when no     * hint applies.     * @return The messenger, not necessarily functional, nor resolved. May be null if the address     * is not handled by any of the available transports.     **/    public Messenger getMessengerImmediate( EndpointAddress addr, Object hint );    /**     * Behaves like {@link #getMessengerImmediate(EndpointAddress, Object)}, except that the invoker is blocked until the     * messenger resolves or fails to do so.     *     * @param addr the destination address.     * @param hint A hint if there is one. Null, otherwise.     * @return The messenger. null is returned if the destination address is not reachable.     **/    public Messenger getMessenger(EndpointAddress addr, Object hint);        /**     * Creates and maps a canonical messenger to the specified destination.<p/>     *     * Behaves like {@link #getMessengerImmediate(EndpointAddress, Object)} except that it returns a canonical messenger.     *     * The messenger is said to be canonical, because there is only one such live object for any given destination address. The     * term live, here means that the messenger is not in any of the {@link Messenger#TERMINAL} states as defined by {@link     * MessengerState}. Therefore, for a given destination there may be any number of messengers in a {@link     * Messenger#TERMINAL} state, but at most one in any other state. As long as such an object exists, all calls to     * <code>getCanonicalMessenger</code> for the same address return this very object.<p/>     *      * When first created, a canonical messenger is usually in the {@link Messenger#UNRESOLVED} state. It becomes resolved by     * obtaining an actual transport messenger to the destination upon the first attempt at using it or when first forced to     * attempt resolution. Should resolution fail at that point, it becomes {@link Messenger#UNRESOLVABLE}. Otherwise, subsequent,     * failures are repaired automatically by obtaining a new transport messenger when needed. If a failure cannot be repaired,     * the messenger becomes {@link Messenger#BROKEN}.<p/>     *     * <code>getCanonicalMessenger</code> is a recursive function. Exploration of the parent endpoint is done automatically.<p/>     *     * <b>Note 1:</b> This method is the most fundamental messenger instantiation method. It creates a different messenger for     * each variant of destination address passed to the constructor. In general invokers should use plain addresses; stripped of     * any service-specific destination.<p/>     *     * <b>Note 2:</b> The messengers that this method returns, are not generally meant to be used directly. They provide a single     * queue for all invokers, and do not perform group redirection and only support only a subset of the <code>sendMessage</code>     * methods.  One must get a properly configured channel in order to send messages.<p/>     *     * If one of the other <code>getMessenger</code> methods fits the application needs, it should be preferred.     *     * @param addr The destination address. It is recommended, though not mandatory that the address be     * stripped of its service name and service param elements.     * @param hint An object, of a type specific to the protocol of the address, that may be provide additional     * information to the transport in establishing the connection. Typically but not necessarily, this is a route advertisement.     * If the transport cannot use the hint, or if it is null, it will be ignored.     * @return A Canonical messenger that obtains transport messengers to the specified address, from LOCAL transports. Returns     * null if no no local transport handles this type address.     *     * @see Messenger     **/    public Messenger getCanonicalMessenger( EndpointAddress addr, Object hint );    /**     *  Removes the specified listener.     *     *  @param listener The listener that would have been called.     *  @param priority Priority set from which to remove this listener.     *  @return true if the listener was removed, otherwise false.     **/    public boolean removeMessengerEventListener( MessengerEventListener listener, int priority );    /**     *  Adds the specified listener for all messenger creation.     *     *  @param listener The listener that will be called.     *  @param priority Order of precedence requested (from 0 to 2). 2 has highest precedence Listeners are called in decreasing     *  order of precedence. Listeners with equal precedence are called in unpredictible order relative to each other. There     *  cannot be more than one listener object for a given precedence. Redundant calls have no effect.     *  @return true if the listener was added, otherwise false.     **/    public boolean addMessengerEventListener( MessengerEventListener listener, int priority );        /**     * Propagates the given message through all the endpoint protocols that are available to this endpoint. Some or all of these

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品你懂的在线欣赏| 欧美精品免费视频| 国产福利电影一区二区三区| 日韩免费观看高清完整版在线观看| 欧美一区二区在线免费观看| 日韩欧美国产午夜精品| 久久久久97国产精华液好用吗| 日本久久一区二区| 日本最新不卡在线| 天天综合网 天天综合色| 国产一区二区在线观看免费| 美女脱光内衣内裤视频久久网站| 三级在线观看一区二区| 欧美一区二区三区小说| 亚洲一区免费在线观看| 日本亚洲欧美天堂免费| 日韩区在线观看| 国内精品伊人久久久久av一坑| 国产亚洲精品久| 91亚洲精品一区二区乱码| 亚洲一二三四区不卡| 日韩一二三区视频| 成人在线视频首页| 亚洲电影一区二区| 日韩三级精品电影久久久| 亚洲自拍偷拍麻豆| 免费视频一区二区| 波多野结衣在线一区| 欧美视频日韩视频在线观看| 国产调教视频一区| 日韩av中文字幕一区二区三区 | 欧洲精品中文字幕| 日韩一区二区三区在线| 国产成人在线观看免费网站| 亚洲精品福利视频网站| 欧美一级理论性理论a| 成人黄色一级视频| 秋霞电影一区二区| 国产精品高潮呻吟| 精品久久久网站| 欧美性色欧美a在线播放| 国产一区二区三区免费| 婷婷综合在线观看| 亚洲天堂精品视频| 久久久久99精品国产片| 欧美精选午夜久久久乱码6080| 国产a精品视频| 免费在线观看一区| 亚洲成人手机在线| 亚洲色图视频免费播放| 国产亚洲精品精华液| 欧美成人一区二区三区片免费| 91成人在线免费观看| 本田岬高潮一区二区三区| 免费亚洲电影在线| 日韩高清在线不卡| 一级做a爱片久久| 亚洲人亚洲人成电影网站色| 久久嫩草精品久久久久| 一本大道av一区二区在线播放| 成人精品在线视频观看| 日韩高清国产一区在线| 亚洲一区二区在线免费看| 国产精品少妇自拍| 国产三级精品视频| 日韩精品中文字幕在线一区| 欧美精品少妇一区二区三区| 欧美午夜精品一区二区三区| 色婷婷av久久久久久久| 99综合电影在线视频| 成人国产精品免费观看| 国产成人精品1024| 福利一区在线观看| 国产精品一二三四五| 国产美女娇喘av呻吟久久| 美国十次了思思久久精品导航| 日韩高清一级片| 日本欧美加勒比视频| 男男视频亚洲欧美| 人人精品人人爱| 日本欧洲一区二区| 狠狠网亚洲精品| 久久精品二区亚洲w码| 蜜桃91丨九色丨蝌蚪91桃色| 欧美a一区二区| 久久精品国产精品亚洲精品| 国产在线不卡一卡二卡三卡四卡| 精品在线视频一区| 国产精品亚洲а∨天堂免在线| 国产一区二区在线看| 成人一区在线看| 99国内精品久久| 91传媒视频在线播放| 欧美疯狂做受xxxx富婆| 欧美xxxxx牲另类人与| 久久久久久久久久久黄色| 欧美韩国一区二区| 亚洲乱码中文字幕综合| 日韩主播视频在线| 狠狠狠色丁香婷婷综合久久五月| 国产精品18久久久久久久久| 成人黄色片在线观看| 欧洲av一区二区嗯嗯嗯啊| 日韩三级精品电影久久久 | 国产成人精品免费在线| av一区二区不卡| 欧美日韩亚洲另类| 国产校园另类小说区| 同产精品九九九| aaa亚洲精品一二三区| 麻豆国产91在线播放| 国产91在线观看| 91精品91久久久中77777| 日韩你懂的电影在线观看| 国产午夜亚洲精品不卡 | 国产精品久久久久天堂| 亚洲h精品动漫在线观看| 国产美女在线观看一区| 欧美色图天堂网| 国产亚洲精品免费| 日韩精品一二区| a在线欧美一区| 日韩一区二区三区电影在线观看| 国产欧美日韩视频一区二区| 亚洲国产精品欧美一二99| 国产成人精品一区二区三区四区 | 久久99国产精品免费| 91视频一区二区三区| 精品美女被调教视频大全网站| 亚洲欧美综合网| 久久av资源网| 欧美性猛片aaaaaaa做受| 久久精品视频网| 日本女优在线视频一区二区| 99国产精品久久久久久久久久久| 91精品免费观看| 亚洲男人的天堂网| 懂色av中文一区二区三区| 日韩丝袜情趣美女图片| 亚洲成人免费在线观看| 91小宝寻花一区二区三区| 久久久国产精品午夜一区ai换脸| 国产凹凸在线观看一区二区| 亚洲三级在线看| 国产毛片精品视频| 欧美亚洲自拍偷拍| 综合久久久久久| 国产福利视频一区二区三区| 3d动漫精品啪啪1区2区免费| 一区二区三区中文在线观看| 国产69精品久久久久777| 精品日韩成人av| 蜜臀av性久久久久av蜜臀妖精| 欧美在线免费视屏| 亚洲免费高清视频在线| av不卡免费在线观看| 国产精品久久久久三级| 成人美女视频在线看| 国产欧美精品一区二区色综合朱莉| 免费精品视频在线| 欧美一区午夜视频在线观看| 天堂久久一区二区三区| 欧美伦理视频网站| 亚洲v中文字幕| 欧美日韩第一区日日骚| 亚洲午夜久久久久中文字幕久| 一本大道久久a久久精二百| 中文字幕一区不卡| 91亚洲男人天堂| 亚洲黄色尤物视频| 欧美性生活一区| 视频一区免费在线观看| 99久久er热在这里只有精品15| 大陆成人av片| 亚洲一级二级在线| 亚洲午夜私人影院| 久久久91精品国产一区二区三区| 日本欧美一区二区三区| 欧美成人一区二区三区在线观看| 久久99精品国产麻豆婷婷洗澡| 日韩一区二区三区视频在线 | 国产欧美日韩一区二区三区在线观看| 国产毛片一区二区| 国产精品家庭影院| 欧美在线观看视频一区二区| 亚洲高清视频中文字幕| 欧美一区二区视频在线观看2020 | 亚洲成人av电影| 91麻豆精品91久久久久同性| 久久精品久久99精品久久| 国产午夜精品一区二区三区四区| 成人免费高清在线| 亚洲成人三级小说| 欧美精品一区二区久久婷婷| 成人免费黄色在线| 亚欧色一区w666天堂| 精品国产欧美一区二区| 伊人一区二区三区| 久久99精品久久只有精品| 国产精品99久|