public class UtilsDHT extends Object
| Constructor and Description |
|---|
UtilsDHT() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addReleaseListener(ChannelCreator channelCreator,
FutureDHT<?> futureDHT)
Adds a listener to the response future and releases all aquired channels in channel creator.
|
static int |
dataSize(PutBuilder putBuilder) |
static int |
dataSize(RemoveBuilder builder) |
public static int dataSize(PutBuilder putBuilder)
public static int dataSize(RemoveBuilder builder)
public static void addReleaseListener(ChannelCreator channelCreator, FutureDHT<?> futureDHT)
channelCreator - The channel creator that will be shutdown and all connections will be closedbaseFutures - The futures to listen to. If all the futures finished, then the channel creator is shutdown. If null
provided, the channel creator is shutdown immediately.Copyright © 2015. All rights reserved.