Class Hl7CorrelationManager

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.netty.TimeoutCorrelationManagerSupport
org.openehealth.ipf.platform.camel.ihe.mllp.core.Hl7CorrelationManager
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.component.netty.NettyCamelStateCorrelationManager, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class Hl7CorrelationManager extends org.apache.camel.component.netty.TimeoutCorrelationManagerSupport
Correlation Manager used when duplexing message over a single Netty connection. Requests and responses are correlated based on MSH-10 and MSA-2 message identifiers
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hl7CorrelationManager(ca.uhn.hl7v2.HapiContext hapiContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class org.apache.camel.component.netty.TimeoutCorrelationManagerSupport

    doShutdown, doStart, doStop, getCamelContext, getState, getState, getTimeout, getTimeoutChecker, getTimeoutLoggingLevel, getTimeoutResponse, getWorkerPool, putState, removeState, setCamelContext, setTimeout, setTimeoutChecker, setTimeoutLoggingLevel, setWorkerPool

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • Hl7CorrelationManager

      public Hl7CorrelationManager(ca.uhn.hl7v2.HapiContext hapiContext)
  • Method Details

    • getRequestCorrelationId

      public String getRequestCorrelationId(Object request)
      Specified by:
      getRequestCorrelationId in class org.apache.camel.component.netty.TimeoutCorrelationManagerSupport
    • getResponseCorrelationId

      public String getResponseCorrelationId(Object response)
      Specified by:
      getResponseCorrelationId in class org.apache.camel.component.netty.TimeoutCorrelationManagerSupport