net.tomp2p.futures
Class FutureChannelCreator

java.lang.Object
  extended by net.tomp2p.futures.BaseFutureImpl<FutureChannelCreator>
      extended by net.tomp2p.futures.FutureChannelCreator
All Implemented Interfaces:
BaseFuture, Cancellable

public class FutureChannelCreator
extends BaseFutureImpl<FutureChannelCreator>

This future is used for the connection reservation. If notifies the user when a connection could have been reserved.

Author:
Thomas Bocek

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.tomp2p.futures.BaseFuture
BaseFuture.FutureType
 
Field Summary
 
Fields inherited from class net.tomp2p.futures.BaseFutureImpl
completed, lock, reason, type
 
Constructor Summary
FutureChannelCreator()
           
 
Method Summary
 ChannelCreator getChannelCreator()
           
 void reserved(ChannelCreator channelCreator)
          Called if a channel creator could be created.
 
Methods inherited from class net.tomp2p.futures.BaseFutureImpl
addCancellation, addListener, addListener, await, await, awaitListeners, awaitUninterruptibly, awaitUninterruptibly, cancel, getFailedReason, getType, isCompleted, isFailed, isSuccess, notifyListerenrs, removeListener, self, setCompletedAndNotify, setFailed, setFailed, setFailed, setFailed, setFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureChannelCreator

public FutureChannelCreator()
Method Detail

reserved

public void reserved(ChannelCreator channelCreator)
Called if a channel creator could be created. With this channel creator connections can be created.

Parameters:
channelCreator - The newly created ChannelCreator

getChannelCreator

public ChannelCreator getChannelCreator()
Returns:
The ChannelCreator


Copyright © 2013. All Rights Reserved.