public class ShardsAllocatorModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
BALANCED_ALLOCATOR_KEY |
static String |
EVEN_SHARD_COUNT_ALLOCATOR_KEY |
static String |
TYPE_KEY |
Constructor and Description |
---|
ShardsAllocatorModule(Settings settings) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures a
Binder via the exposed methods. |
void |
setGatewayAllocator(Class<? extends GatewayAllocator> gatewayAllocator) |
void |
setShardsAllocator(Class<? extends ShardsAllocator> shardsAllocator) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public static final String EVEN_SHARD_COUNT_ALLOCATOR_KEY
public static final String BALANCED_ALLOCATOR_KEY
public static final String TYPE_KEY
public ShardsAllocatorModule(Settings settings)
public void setGatewayAllocator(Class<? extends GatewayAllocator> gatewayAllocator)
public void setShardsAllocator(Class<? extends ShardsAllocator> shardsAllocator)
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
Copyright © 2009–2015. All rights reserved.