亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
一区二区三区在线视频免费观看| 亚洲欧美日韩中文播放 | 老汉av免费一区二区三区| 亚洲欧美日韩综合aⅴ视频| 国产欧美日韩精品a在线观看| 欧美最猛性xxxxx直播| 国产精品亚洲一区二区三区在线| 亚洲桃色在线一区| 欧美成人一区二区| 精品国产区一区| 欧美精品一区二区三区在线| 一区二区三区在线视频免费观看| 亚洲午夜精品17c| 精品国产91洋老外米糕| 日韩成人av影视| 久久综合一区二区| av在线一区二区三区| 亚洲一区精品在线| 精品福利在线导航| 国产久卡久卡久卡久卡视频精品| 欧美激情一区二区三区| 欧美午夜精品一区| 精品亚洲国产成人av制服丝袜| 久久精品这里都是精品| 免费观看在线色综合| 亚洲一区二区在线观看视频| 亚洲大型综合色站| 亚洲国产精品影院| 国产精品无码永久免费888| 亚洲综合色噜噜狠狠| 欧美午夜视频网站| 国产不卡视频在线播放| 丝袜美腿亚洲一区二区图片| 91一区二区三区在线观看| 成人av网站大全| 欧美网站大全在线观看| 亚洲欧美日韩一区二区三区在线观看| 粉嫩在线一区二区三区视频| 精品久久久久久久久久久久包黑料| 亚洲影院久久精品| 欧美日韩一区二区在线视频| 亚洲一区二区三区小说| 欧美人妇做爰xxxⅹ性高电影| 亚洲图片欧美视频| 9191成人精品久久| 久久成人综合网| 久久精品人人做人人爽人人| 国产成人免费xxxxxxxx| 国产精品视频看| eeuss鲁一区二区三区| 亚洲精品五月天| 欧美二区三区91| 久久精品99国产精品| 国产亚洲精品免费| 色综合久久久久综合体桃花网| 一级做a爱片久久| 日韩三级视频中文字幕| 韩国女主播成人在线观看| 中文字幕乱码日本亚洲一区二区| 91在线观看一区二区| 亚洲黄色片在线观看| 欧美精品一卡两卡| 国产黄色精品视频| 亚洲国产日韩一级| 精品国产电影一区二区| 国产成人高清在线| 亚洲gay无套男同| 26uuu国产电影一区二区| 成人av网站免费观看| 天堂午夜影视日韩欧美一区二区| 久久欧美中文字幕| 日本精品一区二区三区高清 | 日本不卡在线视频| 国产亚洲一区二区三区四区| 91精彩视频在线观看| 精品午夜久久福利影院| 亚洲免费观看在线视频| 精品久久99ma| 在线观看日韩电影| 粉嫩aⅴ一区二区三区四区 | 欧美一区二区三区在线看| 国产精品一区久久久久| 日韩二区三区四区| 国产精品久久久久久久久果冻传媒| 欧美日韩一区二区在线视频| 成人一级视频在线观看| 美女被吸乳得到大胸91| 亚洲最大成人网4388xx| 国产精品美日韩| xnxx国产精品| 日韩欧美另类在线| 欧美视频在线不卡| 99久久99精品久久久久久| 精品一区二区在线免费观看| 亚洲综合免费观看高清完整版| 国产日韩精品一区二区三区 | 欧美无人高清视频在线观看| 国产精品18久久久久久vr| 婷婷中文字幕综合| 亚洲在线成人精品| 亚洲美女在线一区| 亚洲欧美在线视频观看| 欧美国产日产图区| 一区二区在线观看视频在线观看| 国产午夜精品一区二区三区视频 | 欧美一区二区在线免费播放| 91理论电影在线观看| 懂色av一区二区三区免费观看| 韩国av一区二区三区在线观看| 美女一区二区在线观看| 奇米综合一区二区三区精品视频| 亚洲国产日日夜夜| 亚洲午夜免费电影| 一区二区理论电影在线观看| 亚洲人成在线观看一区二区| 国产精品久久久久久久蜜臀| 久久婷婷国产综合精品青草 | 黄色资源网久久资源365| 青青草原综合久久大伊人精品 | 国产麻豆精品久久一二三| 久久成人久久爱| 久久aⅴ国产欧美74aaa| 蜜桃精品视频在线观看| 人禽交欧美网站| 精品中文字幕一区二区小辣椒 | www.av精品| 91视频一区二区三区| 91麻豆精品秘密| 欧美日韩一区成人| 日韩一区和二区| www国产精品av| 国产精品欧美一区二区三区| 国产精品乱子久久久久| 亚洲男人天堂一区| 五月天精品一区二区三区| 日本成人在线一区| 国产激情91久久精品导航| 成人av网站免费| 欧美色视频一区| 日韩小视频在线观看专区| 久久先锋影音av| 亚洲欧美色一区| 日韩黄色免费电影| 国产精品1区2区| 91极品美女在线| 日韩一区二区三区免费看| 国产色一区二区| 亚洲一区欧美一区| 国产乱码一区二区三区| 日本韩国欧美在线| 欧美一区二区在线免费观看| 久久久www成人免费毛片麻豆| 中文字幕欧美一| 青草av.久久免费一区| 成人黄页毛片网站| 欧美二区乱c少妇| 国产精品卡一卡二| 日本亚洲欧美天堂免费| 成人h精品动漫一区二区三区| 欧美中文字幕不卡| 日本一区二区三区久久久久久久久不| 亚洲精选视频免费看| 久久丁香综合五月国产三级网站| av电影天堂一区二区在线观看| 欧美人与禽zozo性伦| 欧美国产97人人爽人人喊| 青娱乐精品在线视频| 91丨porny丨户外露出| 久久综合精品国产一区二区三区| 一区二区三区色| 国产麻豆9l精品三级站| 欧美精品成人一区二区三区四区| 中文字幕二三区不卡| 久久精品国产秦先生| 久久欧美中文字幕| 日韩影院精彩在线| 91久久精品日日躁夜夜躁欧美| 国产欧美一区二区精品忘忧草| 日韩福利电影在线观看| 欧美中文字幕一区二区三区亚洲| 欧美激情综合在线| 国产精品99久久久久久久女警| 4438x成人网最大色成网站| 亚洲黄色免费网站| 91免费观看视频| 国产精品美女www爽爽爽| 国产一区欧美一区| 欧美大白屁股肥臀xxxxxx| 亚洲aaa精品| 欧美天堂一区二区三区| 亚洲精品免费在线观看| av在线一区二区三区| 国产精品国产三级国产aⅴ入口| 国产精品中文字幕一区二区三区| 日韩你懂的在线播放| 麻豆91在线播放免费| 日韩久久久精品| 久久99精品国产麻豆婷婷洗澡| 91精品国产全国免费观看| 日韩二区在线观看|