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

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

?? chordinsertfuture.java

?? Chord package into p2psim
?? JAVA
字號:
/***************************************************************************
 *                                                                         *
 *                          ChordInsertFuture.java                         *
 *                            -------------------                          *
 *   date                 : 15.10.2005                                     *
 *   copyright            : (C) 2004-2008 Distributed and                  *
 *                              Mobile Systems Group                       *
 *                              Lehrstuhl fuer Praktische Informatik       *
 *                              Universitaet Bamberg                       *
 *                              http://www.uni-bamberg.de/pi/              *
 *   email                : sven.kaffille@uni-bamberg.de                   *
 *   			   			karsten.loesing@uni-bamberg.de                 *
 *                                                                         *
 *                                                                         *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   A copy of the license can be found in the license.txt file supplied   *
 *   with this software or at: http://www.gnu.org/copyleft/gpl.html        *
 *                                                                         *
 ***************************************************************************/
package de.uniba.wiai.lspi.chord.service.impl;

import java.io.Serializable;
import java.util.concurrent.Executor;

import de.uniba.wiai.lspi.chord.service.Chord;
import de.uniba.wiai.lspi.chord.service.ChordFuture;
import de.uniba.wiai.lspi.chord.service.Key;

/**
 * Implementation of {@link ChordFuture} for
 * {@link ChordImpl#insertAsync(Key, Serializable)}.
 * 
 * @author sven
 * @version 1.0.5
 * 
 */
class ChordInsertFuture extends ChordFutureImpl {

	/**
	 * The instance of chord used for the invocation represented by this. 
	 */
	private Chord chord;

	
	/**
	 * The key used for the insertion. 
	 */
	private Key key;

	/**
	 * The entry to insert. 
	 */
	private Serializable entry;

	/**
	 * 
	 * @param c The instance of chord used for the invocation represented by this. 
	 * @param k The key used for the insertion. 
	 * @param entry The entry to insert.
	 */
	private ChordInsertFuture(Chord c, Key k, Serializable entry) {
		this.chord = c;
		this.key = k;
		this.entry = entry;
	}

	/**
	 * Factory method to create an instance of this class. This method also
	 * prepares execution of the insertion with help of the provided
	 * {@link Executor} <code>exec</code>.
	 * 
	 * @param exec
	 *            The executor that should asynchronously execute the insertion
	 *            of <code>entry</code> with key <code>k</code>.
	 * 
	 * @param c
	 *            The instance of {@link Chord} that should be used to insert
	 *            <code>entry</code>.
	 * @param k
	 *            The {@link Key} for <code>entry</code>.
	 * @param entry
	 *            The entry to be inserted.
	 * @return Instance of this class.
	 */
	final static ChordInsertFuture create(Executor exec, Chord c, Key k,
			Serializable entry) {

		if (c == null) {
			throw new IllegalArgumentException(
					"ChordInsertFuture: chord instance must not be null!");
		}
		if (k == null) {
			throw new IllegalArgumentException(
					"ChordInsertFuture: key must not be null!");
		}
		if (entry == null) {
			throw new IllegalArgumentException(
					"ChordInsertFuture: entry must not be null!");
		}

		ChordInsertFuture f = new ChordInsertFuture(c, k, entry);
		exec.execute(f.getTask());
		return f;
	}

	/**
	 * 
	 * @return A Runnable that executes the operation associated with this. 
	 */
	private final Runnable getTask() {
		return new InsertTask(this.chord, this.key, this.entry);
	}

	/**
	 * Runnable that executes the insertion.
	 * 
	 * @author sven
	 * @version 1.0
	 */
	private class InsertTask implements Runnable {

		/**
		 * The instance of chord used for the invocation represented by this. 
		 */
		private Chord chord;

		
		/**
		 * The key used for the insertion. 
		 */
		private Key key;

		/**
		 * The entry to insert. 
		 */
		private Serializable entry;
		
		/**
		 * Private constructor. 
		 * @param chord 
		 * @param key 
		 * @param entry 
		 */
		InsertTask(Chord chord, Key key, Serializable entry){
			this.chord = chord; 
			this.key = key; 
			this.entry = entry; 
		}
		
		public void run() {
			try {
				this.chord.insert(this.key, this.entry);
			} catch (Throwable t) {
				setThrowable(t);
			}
			setIsDone();
		}
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产百合女同互慰| 精品一区二区影视| 精品亚洲国产成人av制服丝袜 | 亚洲色图制服诱惑 | 欧美mv日韩mv亚洲| 亚洲色图色小说| 久久99精品视频| 精品视频在线免费看| 国产欧美日本一区二区三区| 男女男精品网站| 欧美日韩小视频| 中文字幕一区二区5566日韩| 国内精品久久久久影院色| 欧美乱熟臀69xxxxxx| 亚洲伦在线观看| 成人午夜视频在线| 国产午夜精品一区二区三区嫩草| 日韩**一区毛片| 欧美日本不卡视频| 亚洲国产精品天堂| 色8久久精品久久久久久蜜| 国产精品三级av| 国产成人精品免费在线| 日韩精品一区二区三区在线播放| 午夜精品久久久久| 欧美精品第一页| 亚洲国产另类av| 在线播放中文一区| 日韩成人免费电影| 欧美一级专区免费大片| 美女视频黄久久| 日韩精品中文字幕一区| 韩国视频一区二区| 日韩精品一区二区三区老鸭窝| 蜜乳av一区二区三区| 91精品在线麻豆| 久久91精品国产91久久小草| 精品国免费一区二区三区| 狠狠色丁香久久婷婷综合丁香| 精品免费视频一区二区| 久久99国产精品成人| 国产日韩欧美精品电影三级在线| 国产jizzjizz一区二区| 国产精品国产三级国产aⅴ无密码| 成人福利视频在线看| 一区精品在线播放| 欧美主播一区二区三区美女| 首页综合国产亚洲丝袜| 日韩一区二区影院| 国产综合色在线视频区| 国产精品久久免费看| 91日韩一区二区三区| 亚洲永久免费av| 日韩欧美国产综合在线一区二区三区| 麻豆一区二区三| 欧美高清在线一区二区| 日本精品一区二区三区高清| 视频一区二区三区中文字幕| 精品动漫一区二区三区在线观看| 国产成人精品aa毛片| 一区av在线播放| 精品国产乱子伦一区| 99在线视频精品| 日韩黄色片在线观看| 日本一区二区三区国色天香 | 中文字幕亚洲在| 欧美日本不卡视频| 国产成人福利片| 午夜免费久久看| 中文字幕国产一区二区| 欧美嫩在线观看| 国产91丝袜在线播放| 亚洲gay无套男同| 国产欧美视频在线观看| 欧美精品乱人伦久久久久久| 丁香网亚洲国际| 天堂一区二区在线| 国产精品久久久99| 日韩欧美国产一二三区| 91黄色激情网站| 国产河南妇女毛片精品久久久| 一区二区三区**美女毛片| 国产欧美视频一区二区| 欧美一区二区三区成人| 一本色道**综合亚洲精品蜜桃冫| 精品一区二区影视| 午夜亚洲国产au精品一区二区| 国产清纯白嫩初高生在线观看91| 日本二三区不卡| 国产精品一级片| 欧美精品一区二区在线观看| 欧美日韩精品免费| 99久久er热在这里只有精品15| 国产自产v一区二区三区c| 亚洲综合男人的天堂| 中文字幕制服丝袜一区二区三区| 欧美大片顶级少妇| 91麻豆精品国产91久久久使用方法| 99国产欧美另类久久久精品 | 国产传媒日韩欧美成人| 久久精品国产一区二区三区免费看 | 亚洲美女屁股眼交| 国产精品久久久久一区二区三区 | 免费欧美高清视频| 亚洲va天堂va国产va久| 亚洲欧洲一区二区三区| 国产精品国产成人国产三级| 久久久国产一区二区三区四区小说| 777a∨成人精品桃花网| 欧美日韩免费视频| 欧美亚洲国产一区二区三区| 972aa.com艺术欧美| 99久久婷婷国产综合精品电影 | 激情六月婷婷久久| 麻豆中文一区二区| 国产在线国偷精品产拍免费yy | av资源网一区| 91在线免费看| 在线精品亚洲一区二区不卡| 一本色道久久综合亚洲91| 91久久国产综合久久| 欧美体内she精视频| 欧洲一区二区三区在线| 日本一区二区三区dvd视频在线| 精品成人佐山爱一区二区| 26uuu另类欧美| 欧美国产日韩亚洲一区| 亚洲天堂网中文字| 亚洲一区在线电影| 日本美女一区二区三区视频| 精品无人码麻豆乱码1区2区 | 亚洲人精品午夜| 一区二区三区中文字幕电影| 日韩制服丝袜av| 精品一区二区日韩| 99精品视频在线观看免费| 欧美又粗又大又爽| 在线播放视频一区| 国产欧美日韩视频在线观看| 中文字幕色av一区二区三区| 亚洲成人久久影院| 久久激情五月激情| 成人激情免费网站| 欧美日韩高清影院| 久久久精品tv| 亚洲一区二区三区四区五区黄 | 成人福利视频网站| 91福利视频久久久久| 欧美成人精品福利| 国产精品传媒入口麻豆| 午夜日韩在线观看| 国产精品亚洲第一| 欧美老人xxxx18| 国产亚洲精品福利| 日韩激情av在线| 99综合影院在线| 亚洲精品在线网站| 亚洲一区二区偷拍精品| 国产一区在线不卡| 欧美日韩国产美| 欧美激情综合网| 日韩激情一二三区| 色94色欧美sute亚洲13| 久久久777精品电影网影网| 午夜影院久久久| 成人免费毛片aaaaa**| 欧美一级精品在线| 亚洲精品一二三| 黑人巨大精品欧美一区| 欧美日韩成人一区二区| 中文字幕中文字幕中文字幕亚洲无线| 污片在线观看一区二区| 日韩一区二区电影| 一区二区三区中文字幕精品精品 | 一区二区三区在线播| 国内外成人在线视频| 欧美日韩高清影院| 亚洲欧美另类小说视频| 国产传媒欧美日韩成人| 日韩视频永久免费| 日韩av一区二区在线影视| 欧美性极品少妇| 亚洲男人的天堂在线观看| 成人视屏免费看| 国产片一区二区| 国产一区二区三区黄视频| 日韩欧美在线综合网| 午夜视频一区二区| 欧美日韩久久一区二区| 亚洲在线视频一区| 日本高清免费不卡视频| 亚洲欧美激情小说另类| a级精品国产片在线观看| 国产精品久久久久三级| 国产传媒一区在线| 国产精品乱码人人做人人爱| 国产91在线看| 国产精品久久久久桃色tv| av一区二区三区在线| 综合久久久久综合|