net.tomp2p.p2p.config
Class ConfigurationBaseDHT

java.lang.Object
  extended by net.tomp2p.p2p.config.ConfigurationBase
      extended by net.tomp2p.p2p.config.ConfigurationBaseDHT
Direct Known Subclasses:
ConfigurationBootstrap, ConfigurationDirect, ConfigurationGet, ConfigurationRemove, ConfigurationStore

public class ConfigurationBaseDHT
extends ConfigurationBase


Constructor Summary
ConfigurationBaseDHT()
           
 
Method Summary
 RequestP2PConfiguration getRequestP2PConfiguration()
           
 boolean isAutomaticCleanup()
           
 void setAutomaticCleanup(boolean automaticCleanup)
          Set this flag to true if automatic cleanup should be enabled.
 ConfigurationBase setRequestP2PConfiguration(RequestP2PConfiguration requestP2PConfiguration)
           
 
Methods inherited from class net.tomp2p.p2p.config.ConfigurationBase
getContentKey, getDomain, getRoutingConfiguration, isSignMessage, setContentKey, setDomain, setRoutingConfiguration, setSignMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationBaseDHT

public ConfigurationBaseDHT()
Method Detail

setRequestP2PConfiguration

public ConfigurationBase setRequestP2PConfiguration(RequestP2PConfiguration requestP2PConfiguration)

getRequestP2PConfiguration

public RequestP2PConfiguration getRequestP2PConfiguration()

isAutomaticCleanup

public boolean isAutomaticCleanup()
Returns:
True if automatic cleanup should be enabled. This means that after a FutureDHT is complete, the ChannelCreator is automatically released. If set to false, the user needs to call Peer.release(net.tomp2p.connection.ChannelCreator).

setAutomaticCleanup

public void setAutomaticCleanup(boolean automaticCleanup)
Set this flag to true if automatic cleanup should be enabled. This means that after a FutureDHT is complete, the ChannelCreator is automatically released. If set to false, the user needs to call Peer.release(net.tomp2p.connection.ChannelCreator).

Parameters:
automaticCleanup - The default in Configurations is true.


Copyright © 2012. All Rights Reserved.