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 Details

    • JeroMQInstanceConnectionServiceModule

      public JeroMQInstanceConnectionServiceModule()
  • Method Details

    • configure

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

      public JeroMQInstanceConnectionServiceModule withBindAddress(String bindAddress)
      Specifies the bind address for the underlying JeroMQInstanceConnectionService where it will accept and receive incoming connections from peers and nother nodes.
      Parameters:
      bindAddress - the bind address
      Returns:
      this instance
    • withRefreshIntervalSeconds

      public JeroMQInstanceConnectionServiceModule withRefreshIntervalSeconds(long seconds)
      Binds the specific refresh interval.
      Parameters:
      seconds - the refresh interval, in seconds.
      Returns:
      this instance
    • withDefaultRefreshInterval

      public JeroMQInstanceConnectionServiceModule withDefaultRefreshInterval()
      Uses the default refresh interval.
      Returns:
      this instance