net.tomp2p.p2p.config
Class ConfigurationBaseDHT
java.lang.Object
net.tomp2p.p2p.config.ConfigurationBase
net.tomp2p.p2p.config.ConfigurationBaseDHT
- Direct Known Subclasses:
- ConfigurationBootstrap, ConfigurationDirect, ConfigurationGet, ConfigurationRemove, ConfigurationStore
public class ConfigurationBaseDHT
- extends ConfigurationBase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationBaseDHT
public ConfigurationBaseDHT()
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.