Class JobLockHolderImpl

  • All Implemented Interfaces:
    java.io.Serializable, org.ikasan.spec.scheduled.context.model.JobLockHolder

    public class JobLockHolderImpl
    extends org.ikasan.spec.scheduled.context.model.AbstractJobLockHolder
    implements org.ikasan.spec.scheduled.context.model.JobLockHolder
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.ikasan.spec.scheduled.context.model.AbstractJobLockHolder

        schedulerJobs
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLockHolder​(java.lang.String jobIdentifier)  
      long getLockCount()  
      java.util.Set<java.lang.String> getLockHolders()  
      java.lang.String getLockName()  
      java.util.Queue<org.ikasan.spec.scheduled.event.model.ContextualisedSchedulerJobInitiationEvent> getSchedulerJobInitiationEventWaitQueue()  
      java.util.Map<java.lang.String,​java.util.List<org.ikasan.spec.scheduled.job.model.SchedulerJobLockParticipant>> getSchedulerJobs()  
      boolean isExclusiveJobLock()  
      boolean removeLockHolder​(java.lang.String jobIdentifier)  
      void setExclusiveJobLock​(boolean exclusiveJobLock)  
      void setLockCount​(long lockCount)  
      void setLockName​(java.lang.String lockName)  
      void setSchedulerJobInitiationEventWaitQueue​(java.util.Queue<org.ikasan.spec.scheduled.event.model.ContextualisedSchedulerJobInitiationEvent> contextualisedSchedulerJobInitiationEventQueue)  
      java.lang.String toString()  
      • Methods inherited from class org.ikasan.spec.scheduled.context.model.AbstractJobLockHolder

        addSchedulerJobs, removeSchedulerJobsForContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.ikasan.spec.scheduled.context.model.JobLockHolder

        addSchedulerJobs, removeSchedulerJobsForContext
    • Constructor Detail

      • JobLockHolderImpl

        public JobLockHolderImpl()
    • Method Detail

      • getLockName

        public java.lang.String getLockName()
        Specified by:
        getLockName in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • setLockName

        public void setLockName​(java.lang.String lockName)
        Specified by:
        setLockName in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • getLockCount

        public long getLockCount()
        Specified by:
        getLockCount in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • setLockCount

        public void setLockCount​(long lockCount)
        Specified by:
        setLockCount in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • isExclusiveJobLock

        public boolean isExclusiveJobLock()
        Specified by:
        isExclusiveJobLock in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • setExclusiveJobLock

        public void setExclusiveJobLock​(boolean exclusiveJobLock)
        Specified by:
        setExclusiveJobLock in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • getSchedulerJobs

        public java.util.Map<java.lang.String,​java.util.List<org.ikasan.spec.scheduled.job.model.SchedulerJobLockParticipant>> getSchedulerJobs()
        Specified by:
        getSchedulerJobs in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • getLockHolders

        public java.util.Set<java.lang.String> getLockHolders()
        Specified by:
        getLockHolders in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • addLockHolder

        public void addLockHolder​(java.lang.String jobIdentifier)
        Specified by:
        addLockHolder in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • removeLockHolder

        public boolean removeLockHolder​(java.lang.String jobIdentifier)
        Specified by:
        removeLockHolder in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • getSchedulerJobInitiationEventWaitQueue

        public java.util.Queue<org.ikasan.spec.scheduled.event.model.ContextualisedSchedulerJobInitiationEvent> getSchedulerJobInitiationEventWaitQueue()
        Specified by:
        getSchedulerJobInitiationEventWaitQueue in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • setSchedulerJobInitiationEventWaitQueue

        public void setSchedulerJobInitiationEventWaitQueue​(java.util.Queue<org.ikasan.spec.scheduled.event.model.ContextualisedSchedulerJobInitiationEvent> contextualisedSchedulerJobInitiationEventQueue)
        Specified by:
        setSchedulerJobInitiationEventWaitQueue in interface org.ikasan.spec.scheduled.context.model.JobLockHolder
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object