Class MaildirWorkflowEventSource

All Implemented Interfaces:
IActivatableWorkflowObject, de.uplanet.lucy.server.workflow.IImpersonateUser, ILogLevelAware, INamedWorkflowObject, de.uplanet.lucy.server.workflow.INeedClusterInfo, INeedWorkflow, IRunnableWorkflowObject, IStartableWorkflowObject, ISupportAfterStopEvent, ISupportBeforeStartEvent, ISupportGlobalSharedState, IWorkflowEventSource, IWorkflowObject, Serializable

public final class MaildirWorkflowEventSource extends AbstractSingleThreadedWorkflowEventSource implements de.uplanet.lucy.server.workflow.INeedClusterInfo, ISupportGlobalSharedState, ISupportBeforeStartEvent, ISupportAfterStopEvent
Event source that watches maildirs.

See maildir format.

Since:
Intrexx 7.0.
See Also:
  • Constructor Details

    • MaildirWorkflowEventSource

      public MaildirWorkflowEventSource(String p_strGuid)
  • Method Details

    • getClusterInfo

      public de.uplanet.lucy.server.workflow.IClusterInfo getClusterInfo()
      Specified by:
      getClusterInfo in interface de.uplanet.lucy.server.workflow.INeedClusterInfo
    • setClusterInfo

      public void setClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo)
      Specified by:
      setClusterInfo in interface de.uplanet.lucy.server.workflow.INeedClusterInfo
    • getDispatchDelay

      public long getDispatchDelay()
      Get the dispatch delay, i.e. the delay before a file system event is dispatched to the workflows.
      Returns:
      The dispatch delay.
    • setDispatchDelay

      public void setDispatchDelay(long p_lDispatchDelay)
      Set the dispatch delay, i.e. the delay before a file system event is dispatched to the workflows.
      Parameters:
      p_lDispatchDelay - The dispatch delay.
    • getWatchedDirectory

      public String getWatchedDirectory()
      Get the watched directory.
      Returns:
      The watched directory.
    • setWatchedDirectory

      public void setWatchedDirectory(String p_strPath)
      Set the watched directory.
      Parameters:
      p_strPath - The directory to be watched.
    • isSendBeforeStartEvent

      public boolean isSendBeforeStartEvent()
      This property determines if an IBeforeStartWatchMaildirWorkflowEvent should be sent.
      Specified by:
      isSendBeforeStartEvent in interface ISupportBeforeStartEvent
      Returns:
      true if the event should be sent before the workflow object's activity is about to being started, or false otherwise.
    • setSendBeforeStartEvent

      public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent)
      This property determines if an IBeforeStartWatchMaildirWorkflowEvent should be sent.
      Specified by:
      setSendBeforeStartEvent in interface ISupportBeforeStartEvent
      Parameters:
      p_bSendBeforeStartEvent - true if the event should be sent before the workflow object's activity is about to being started, or false otherwise.
    • isSendAfterStopEvent

      public boolean isSendAfterStopEvent()
      This property determines if an IAfterStopWatchMaildirWorkflowEvent should be sent.
      Specified by:
      isSendAfterStopEvent in interface ISupportAfterStopEvent
      Returns:
      true if the event should be sent after the workflow object's activity has been stopped, or false otherwise.
    • setSendAfterStopEvent

      public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent)
      This property determines if an IAfterStopWatchMaildirWorkflowEvent should be sent.
      Specified by:
      setSendAfterStopEvent in interface ISupportAfterStopEvent
      Parameters:
      p_bSendAfterStopEvent - true if the event should be sent after the workflow object's activity has been stopped, or false otherwise.
    • isIgnoreDottedMaildirObjects

      public boolean isIgnoreDottedMaildirObjects()
      This property determines if file system objects whose names start with a dot should be ignored.

      The default value is true.

      Returns:
      true if dotted file system objects should be ignored, or false otherwise.
    • setIgnoreDottedMaildirObjects

      public void setIgnoreDottedMaildirObjects(boolean p_bIgnoreDottedMaildirObjects)
      This property determines if file system objects whose names start with a dot should be ignored.

      The default value is true.

      Parameters:
      p_bIgnoreDottedMaildirObjects - true if dotted file system objects should be ignored, or false otherwise.
    • isLoadIncomingMessagesImmediately

      public boolean isLoadIncomingMessagesImmediately()
      This property determines if incoming messages should be loaded immediately and be included in the generated events.

      If set to false loading of the message will be delayed until it is accessed through the event's message property.

      The default value is false.

      Returns:
      true if incoming messages should be loaded immediately, or false otherwise.
    • setLoadIncomingMessagesImmediately

      public void setLoadIncomingMessagesImmediately(boolean p_bLoadIncomingMessagesImmediately)
      This property determines if incoming messages should be loaded immediately and be included in the generated events.

      If set to false loading of the message will be delayed until it is accessed through the event's message property.

      The default value is false.

      Parameters:
      p_bLoadIncomingMessagesImmediately - true if incoming messages should be loaded immediately, or false otherwise.
    • isGlobalSharedState

      public boolean isGlobalSharedState()
      This property determines if a global shared state should be used for all events created by this event source.
      Specified by:
      isGlobalSharedState in interface ISupportGlobalSharedState
      Returns:
      true if a global shared state should be used, or false otherwise.
    • setGlobalSharedState

      public void setGlobalSharedState(boolean p_bGlobalSharedState)
      This property determines if a global shared state should be used for all events created by this event source.
      Specified by:
      setGlobalSharedState in interface ISupportGlobalSharedState
      Parameters:
      p_bGlobalSharedState - true if a global shared state should be used, or false otherwise.