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 Details

    • JeroMQNodeModule

      public JeroMQNodeModule()
  • Method Details

    • withNodeId

      public JeroMQNodeModule withNodeId(NodeId nodeId)
      Specifies the symbolic name of the node using the Node.NAME.
      Parameters:
      nodeId - the Node ID
      Returns:
      this instance
    • withNodeId

      public JeroMQNodeModule withNodeId(InstanceId instanceId, ApplicationId applicationId)
      Parameters:
      instanceId - the InstanceId
      applicationId - the ApplicationId
      Returns:
      this instance
    • withDefaultNodeName

      public JeroMQNodeModule withDefaultNodeName()
      Specifies the default symbolic name of the node using the Node.NAME.
      Returns:
      this instance
    • withNodeName

      public JeroMQNodeModule withNodeName(String nodeName)
      Specifies the symbolic name of the node using the Node.NAME.
      Parameters:
      nodeName - the node name
      Returns:
      this instance
    • withMinimumConnections

      public JeroMQNodeModule withMinimumConnections(int minimumConnections)
      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

      public JeroMQNodeModule withMaximumConnections(int maximumConnections)
      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

      public JeroMQNodeModule withAnnotation(Annotation annotation)
      Specifies an Annotation to bind to the underlying Node.
      Parameters:
      annotation - the literal annotation to bind
      Returns:
      this instance
    • withAnnotation

      public JeroMQNodeModule withAnnotation(String name)
      Specifies the annotation as a name annotated node.
      Parameters:
      name - the name
      Returns:
      this instance
    • withMasterNodeForInstanceId

      public JeroMQNodeModule withMasterNodeForInstanceId(InstanceId instanceId)
      Indicates that this instance should bind the Node as a master node supplying the InstanceId
      Parameters:
      instanceId - the InstanceId
      Returns:
      this instance
    • configure

      protected void configure()
      Specified by:
      configure in class com.google.inject.PrivateModule