Class JeroMQInstanceConnectionServiceModule
java.lang.Object
com.google.inject.PrivateModule
dev.getelements.elements.rt.remote.jeromq.guice.JeroMQInstanceConnectionServiceModule
- All Implemented Interfaces:
com.google.inject.Module
public class JeroMQInstanceConnectionServiceModule
extends com.google.inject.PrivateModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
withBindAddress
(String bindAddress) Specifies the bind address for the underlyingJeroMQInstanceConnectionService
where it will accept and receive incoming connections from peers and nother nodes.Uses the default refresh interval.withRefreshIntervalSeconds
(long seconds) Binds the specific refresh interval.Methods inherited from class com.google.inject.PrivateModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, expose, expose, expose, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
JeroMQInstanceConnectionServiceModule
public JeroMQInstanceConnectionServiceModule()
-
-
Method Details
-
configure
protected void configure()- Specified by:
configure
in classcom.google.inject.PrivateModule
-
withBindAddress
Specifies the bind address for the underlyingJeroMQInstanceConnectionService
where it will accept and receive incoming connections from peers and nother nodes.- Parameters:
bindAddress
- the bind address- Returns:
- this instance
-
withRefreshIntervalSeconds
Binds the specific refresh interval.- Parameters:
seconds
- the refresh interval, in seconds.- Returns:
- this instance
-
withDefaultRefreshInterval
Uses the default refresh interval.- Returns:
- this instance
-