Class JeroMQContextModule

java.lang.Object
com.google.inject.PrivateModule
dev.getelements.elements.rt.remote.jeromq.guice.JeroMQContextModule
All Implemented Interfaces:
com.google.inject.Module

public class JeroMQContextModule extends com.google.inject.PrivateModule
Combines JeroMQRemoteInvokerModule with the ClusterContextModule to make a complete client module with adjustable parameters.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    withApplicationUniqueName(String applicationUniqueName)
    Given a unique string identifier for the application, this will genrate a unique identifier for the application's unique name using ApplicationId.forUniqueName(String).
    withZContext(org.zeromq.ZContext zContext)
    Allows for the specification of a specific ZContext instance

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JeroMQContextModule

      public JeroMQContextModule()
  • Method Details

    • configure

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

      public JeroMQContextModule withZContext(org.zeromq.ZContext zContext)
      Allows for the specification of a specific ZContext instance
      Parameters:
      zContext - the ZContext instance.
      Returns:
      this instance
    • withApplicationUniqueName

      public JeroMQContextModule withApplicationUniqueName(String applicationUniqueName)
      Given a unique string identifier for the application, this will genrate a unique identifier for the application's unique name using ApplicationId.forUniqueName(String).
      Parameters:
      applicationUniqueName - the unique-string representing the application ID
      Returns:
      this instance