Class JeroMQNodeModule
java.lang.Object
com.google.inject.PrivateModule
dev.getelements.elements.rt.remote.jeromq.guice.JeroMQNodeModule
- All Implemented Interfaces:
com.google.inject.Module
public class JeroMQNodeModule
extends com.google.inject.PrivateModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
withAnnotation
(Annotation annotation) Specifies anAnnotation
to bind to the underlyingNode
.withAnnotation
(String name) Specifies the annotation as a name annotated node.Specifies the default symbolic name of the node using theNode.NAME
.withMasterNodeForInstanceId
(InstanceId instanceId) Indicates that this instance should bind theNode
as a master node supplying theInstanceId
withMaximumConnections
(int maximumConnections) Specifies the maximum number of connections to keep active, even if the timeout has expired.withMinimumConnections
(int minimumConnections) Specifies the minimum number of connections to keep active, even if the timeout has expired.withNodeId
(InstanceId instanceId, ApplicationId applicationId) A shortcut for invokingwithNodeId(InstanceId, ApplicationId)
usingNodeId.forInstanceAndApplication(InstanceId, ApplicationId)
.withNodeId
(NodeId nodeId) Specifies the symbolic name of the node using theNode.NAME
.withNodeName
(String nodeName) Specifies the symbolic name of the node using theNode.NAME
.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
-
JeroMQNodeModule
public JeroMQNodeModule()
-
-
Method Details
-
withNodeId
Specifies the symbolic name of the node using theNode.NAME
.- Parameters:
nodeId
- the Node ID- Returns:
- this instance
-
withNodeId
A shortcut for invokingwithNodeId(InstanceId, ApplicationId)
usingNodeId.forInstanceAndApplication(InstanceId, ApplicationId)
.- Parameters:
instanceId
- theInstanceId
applicationId
- theApplicationId
- Returns:
- this instance
-
withDefaultNodeName
Specifies the default symbolic name of the node using theNode.NAME
.- Returns:
- this instance
-
withNodeName
Specifies the symbolic name of the node using theNode.NAME
.- Parameters:
nodeName
- the node name- Returns:
- this instance
-
withMinimumConnections
Specifies the minimum number of connections to keep active, even if the timeout has expired.- Parameters:
minimumConnections
- the minimum number of connections to keep issueOpenInprocChannelCommand- Returns:
- this instance
-
withMaximumConnections
Specifies the maximum number of connections to keep active, even if the timeout has expired.- Parameters:
maximumConnections
- the minimum number of connections to keep issueOpenInprocChannelCommand- Returns:
- this instance
-
withAnnotation
Specifies anAnnotation
to bind to the underlyingNode
.- Parameters:
annotation
- the literal annotation to bind- Returns:
- this instance
-
withAnnotation
Specifies the annotation as a name annotated node.- Parameters:
name
- the name- Returns:
- this instance
-
withMasterNodeForInstanceId
Indicates that this instance should bind theNode
as a master node supplying theInstanceId
- Parameters:
instanceId
- theInstanceId
- Returns:
- this instance
-
configure
protected void configure()- Specified by:
configure
in classcom.google.inject.PrivateModule
-