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, requireBindingpublic 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()
AbstractModuleBinder via the exposed methods.configure in class AbstractModulepublic void setTransportService(Class<? extends TransportService> transportService, String source)
Copyright © 2009–2017. All rights reserved.