パッケージ org.piax.gtrans.tsd
クラス TSDDiscoverable<E extends Endpoint>
java.lang.Object
org.piax.gtrans.tsd.TSDDiscoverable<E>
- すべての実装されたインタフェース:
Discoverable<E>,TSDListener
public class TSDDiscoverable<E extends Endpoint> extends Object implements Discoverable<E>, TSDListener
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classTSDDiscoverable.Type -
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected ConcurrentLinkedQueue<org.piax.gtrans.tsd.TSDDiscoverable.InfoBox<PeerInfo<E>>>availableInfoQueuestatic longDEFAULT_EXPIRATION_TIMEprotected Set<DiscoveryListener<E>>listeners -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 TSDDiscoverable(PeerId peerId, TSDDiscoverable.Type type, TransportId transId) -
メソッドの概要
修飾子とタイプ メソッド 説明 booleanaddDiscoveryListener(DiscoveryListener<E> listener)voidcancelDiscovery()voidfin()List<PeerInfo<E>>getAvailablePeerInfos()peerId, receiverの区分で、有効なサービスのリストを取得する。voidonDiscovered(Object info)voidonFadeoutCheck()voidregister(PeerInfo<E> info)booleanremoveDiscoveryListener(DiscoveryListener<E> listener)voidscheduleDiscovery(long delay, long period)voidsetExpireTime(long period)近傍から受け取ったサービスの有効期限(ms)をセットする。voidunregister(PeerInfo<E> info)
-
フィールド詳細
-
DEFAULT_EXPIRATION_TIME
public static long DEFAULT_EXPIRATION_TIME -
listeners
-
availableInfoQueue
protected final ConcurrentLinkedQueue<org.piax.gtrans.tsd.TSDDiscoverable.InfoBox<PeerInfo<E extends Endpoint>>> availableInfoQueue
-
-
コンストラクタの詳細
-
TSDDiscoverable
public TSDDiscoverable(PeerId peerId, TSDDiscoverable.Type type, TransportId transId) throws IOException- 例外:
IOException
-
-
メソッドの詳細
-
fin
public void fin()- 定義:
finインタフェース内Discoverable<E extends Endpoint>
-
setExpireTime
public void setExpireTime(long period)近傍から受け取ったサービスの有効期限(ms)をセットする。 この期限を越えて更新されなかったサービス情報は破棄される。- 定義:
setExpireTimeインタフェース内Discoverable<E extends Endpoint>- パラメータ:
period- サービスの有効期限(ms)
-
register
- 定義:
registerインタフェース内Discoverable<E extends Endpoint>
-
unregister
- 定義:
unregisterインタフェース内Discoverable<E extends Endpoint>
-
getAvailablePeerInfos
peerId, receiverの区分で、有効なサービスのリストを取得する。- 定義:
getAvailablePeerInfosインタフェース内Discoverable<E extends Endpoint>- 戻り値:
- the list of PeerInfo.
-
addDiscoveryListener
- 定義:
addDiscoveryListenerインタフェース内Discoverable<E extends Endpoint>
-
removeDiscoveryListener
- 定義:
removeDiscoveryListenerインタフェース内Discoverable<E extends Endpoint>
-
scheduleDiscovery
public void scheduleDiscovery(long delay, long period)- 定義:
scheduleDiscoveryインタフェース内Discoverable<E extends Endpoint>
-
cancelDiscovery
public void cancelDiscovery()- 定義:
cancelDiscoveryインタフェース内Discoverable<E extends Endpoint>
-
onDiscovered
- 定義:
onDiscoveredインタフェース内TSDListener
-
onFadeoutCheck
public void onFadeoutCheck()- 定義:
onFadeoutCheckインタフェース内TSDListener
-