Class ScheduleProcessInboundProducer

  • All Implemented Interfaces:
    com.arjuna.ats.jta.resources.LastResourceCommitOptimisation, javax.transaction.xa.XAResource, org.ikasan.spec.component.endpoint.Producer<java.lang.String>, org.ikasan.spec.configuration.Configured<ScheduleProcessInboundProducerConfiguration>, org.ikasan.spec.configuration.ConfiguredResource<ScheduleProcessInboundProducerConfiguration>, org.ikasan.spec.error.reporting.IsErrorReportingServiceAware

    public class ScheduleProcessInboundProducer
    extends java.lang.Object
    implements org.ikasan.spec.component.endpoint.Producer<java.lang.String>, org.ikasan.spec.configuration.ConfiguredResource<ScheduleProcessInboundProducerConfiguration>, com.arjuna.ats.jta.resources.LastResourceCommitOptimisation, org.ikasan.spec.error.reporting.IsErrorReportingServiceAware
    • Field Summary

      • Fields inherited from interface javax.transaction.xa.XAResource

        TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
    • Constructor Summary

      Constructors 
      Constructor Description
      ScheduleProcessInboundProducer​(javax.transaction.TransactionManager transactionManager, org.ikasan.spec.scheduled.instance.service.ScheduledContextInstanceService scheduledContextInstanceService, org.ikasan.spec.scheduled.instance.service.ContextInstancePublicationService contextInstancePublicationService, org.ikasan.spec.metadata.ModuleMetaDataService moduleMetadataService)  
    • Constructor Detail

      • ScheduleProcessInboundProducer

        public ScheduleProcessInboundProducer​(javax.transaction.TransactionManager transactionManager,
                                              org.ikasan.spec.scheduled.instance.service.ScheduledContextInstanceService scheduledContextInstanceService,
                                              org.ikasan.spec.scheduled.instance.service.ContextInstancePublicationService contextInstancePublicationService,
                                              org.ikasan.spec.metadata.ModuleMetaDataService moduleMetadataService)
    • Method Detail

      • invoke

        public void invoke​(java.lang.String payload)
                    throws org.ikasan.spec.component.endpoint.EndpointException
        Specified by:
        invoke in interface org.ikasan.spec.component.endpoint.Producer<java.lang.String>
        Throws:
        org.ikasan.spec.component.endpoint.EndpointException
      • getConfiguredResourceId

        public java.lang.String getConfiguredResourceId()
        Specified by:
        getConfiguredResourceId in interface org.ikasan.spec.configuration.ConfiguredResource<ScheduleProcessInboundProducerConfiguration>
      • setConfiguredResourceId

        public void setConfiguredResourceId​(java.lang.String configurationId)
        Specified by:
        setConfiguredResourceId in interface org.ikasan.spec.configuration.ConfiguredResource<ScheduleProcessInboundProducerConfiguration>
      • commit

        public void commit​(javax.transaction.xa.Xid xid,
                           boolean onePhase)
                    throws javax.transaction.xa.XAException
        Specified by:
        commit in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • end

        public void end​(javax.transaction.xa.Xid xid,
                        int flags)
                 throws javax.transaction.xa.XAException
        Specified by:
        end in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • forget

        public void forget​(javax.transaction.xa.Xid xid)
                    throws javax.transaction.xa.XAException
        Specified by:
        forget in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • getTransactionTimeout

        public int getTransactionTimeout()
                                  throws javax.transaction.xa.XAException
        Specified by:
        getTransactionTimeout in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • isSameRM

        public boolean isSameRM​(javax.transaction.xa.XAResource xares)
                         throws javax.transaction.xa.XAException
        Specified by:
        isSameRM in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • prepare

        public int prepare​(javax.transaction.xa.Xid xid)
                    throws javax.transaction.xa.XAException
        Specified by:
        prepare in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • recover

        public javax.transaction.xa.Xid[] recover​(int flag)
                                           throws javax.transaction.xa.XAException
        Specified by:
        recover in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • rollback

        public void rollback​(javax.transaction.xa.Xid xid)
                      throws javax.transaction.xa.XAException
        Specified by:
        rollback in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • setTransactionTimeout

        public boolean setTransactionTimeout​(int seconds)
                                      throws javax.transaction.xa.XAException
        Specified by:
        setTransactionTimeout in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • start

        public void start​(javax.transaction.xa.Xid xid,
                          int flags)
                   throws javax.transaction.xa.XAException
        Specified by:
        start in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • setErrorReportingService

        public void setErrorReportingService​(org.ikasan.spec.error.reporting.ErrorReportingService errorReportingService)
        Specified by:
        setErrorReportingService in interface org.ikasan.spec.error.reporting.IsErrorReportingServiceAware