public class TransportModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_TRANSPORT |
static String |
NETTY_TRANSPORT |
static String |
TRANSPORT_SERVICE_TYPE_KEY |
static String |
TRANSPORT_TYPE_KEY |
Constructor and Description |
---|
TransportModule(Settings settings,
NamedWriteableRegistry namedWriteableRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
addTransport(String name,
Class<? extends Transport> clazz) |
void |
addTransportService(String name,
Class<? extends TransportService> clazz) |
protected void |
configure()
Configures a
Binder via the exposed methods. |
void |
setTransport(Class<? extends Transport> transport,
String source) |
void |
setTransportService(Class<? extends TransportService> transportService,
String source) |
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 TRANSPORT_TYPE_KEY
public static final String TRANSPORT_SERVICE_TYPE_KEY
public static final String LOCAL_TRANSPORT
public static final String NETTY_TRANSPORT
public TransportModule(Settings settings, NamedWriteableRegistry namedWriteableRegistry)
public void addTransportService(String name, Class<? extends TransportService> clazz)
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
public void setTransportService(Class<? extends TransportService> transportService, String source)
Copyright © 2009–2016. All rights reserved.