Klasse AbstractIMAPFolderWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
de.uplanet.lucy.server.mailservice.workflow.eventsource.AbstractIMAPFolderWorkflowEventSource
- Alle implementierten Schnittstellen:
IActivatableWorkflowObject,de.uplanet.lucy.server.workflow.IImpersonateUser,ILogLevelAware,INamedWorkflowObject,de.uplanet.lucy.server.workflow.INeedClusterInfo,INeedWorkflow,IRunnableWorkflowObject,IStartableWorkflowObject,ISupportAfterStopEvent,ISupportBeforeStartEvent,ISupportGlobalSharedState,IWorkflowEventSource,IWorkflowObject,Serializable
- Bekannte direkte Unterklassen:
ExchangeOnlineIMAPFolderPollingWorkflowEventSource,IMAPFolderPollingWorkflowEventSource
public abstract class AbstractIMAPFolderWorkflowEventSource
extends AbstractSingleThreadedWorkflowEventSource
implements de.uplanet.lucy.server.workflow.INeedClusterInfo, ISupportGlobalSharedState, ISupportBeforeStartEvent, ISupportAfterStopEvent
- Seit:
- Intrexx 7.0.
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungde.uplanet.lucy.server.workflow.IClusterInfolongGet the dispatch delay, i.e. the delay before an IMAP message event is dispatched to the workflows.Get the action to be performed after an IMAP message has been processed.getHost()Get the IMAP server to connect to.Get the filter for selecting messages that are to be processed.longGet the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.intgetPort()Get the port the IMAP server listens to.Get the protocol.booleanThis property determines if a global shared state should be used for all events created by this event source.booleanThis property determines if incoming messages should be loaded immediately and be included in the generated events.booleanThis property determines if anIAfterStopWatchIMAPFolderWorkflowEventshould be sent.booleanThis property determines if anIBeforeStartWatchIMAPFolderWorkflowEventshould be sent.voidsetClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) voidsetDispatchDelay(long p_lDispatchDelay) Set the dispatch delay, i.e. the delay before an IMAP message event is dispatched to the workflows.voidsetFinishAction(IMAPFinishActionCfg p_finishAction) Set the action to be performed after an IMAP message has been processed.voidvoidsetGlobalSharedState(boolean p_bGlobalSharedState) This property determines if a global shared state should be used for all events created by this event source.voidSet the IMAP server to connect to.voidsetJavaMailProperties(Map<String, String> p_javaMailProperties) voidsetLoadIncomingMessagesImmediately(boolean p_bLoadIncomingMessagesImmediately) This property determines if incoming messages should be loaded immediately and be included in the generated events.voidsetMessageSelectFilter(MessageSelectFilterCfg p_selectFilter) Set the filter for selecting messages that are to be processed.voidsetOnErrorRestartWaitTimeout(long p_lOnErrorRestartWaitTimeout) Set the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.voidsetPort(int p_iPort) Set the port the IMAP server listens to.voidsetProtocol(String p_strProtocol) Set the protocol.voidsetSendAfterStopEvent(boolean p_bSendAfterStopEvent) This property determines if anIAfterStopWatchIMAPFolderWorkflowEventshould be sent.voidsetSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) This property determines if anIBeforeStartWatchIMAPFolderWorkflowEventshould be sent.Von Klasse geerbte Methoden de.uplanet.lucy.server.workflow.eventsource.AbstractSingleThreadedWorkflowEventSource
getDatabaseConnectionFactory, getStartDelay, getStopWaitTimeout, isLogVerbose, isRunning, setDatabaseConnectionFactory, setLogVerbose, setStartDelay, setStopWaitTimeout, shouldRun, start, stopVon Klasse geerbte Methoden de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
getGuid, getImpersonateUserGuid, getName, getWorkflow, hasImpersonateUserGuid, isActive, isRunWithLocalSystemPrivileges, setActive, setImpersonateUserGuid, setName, setRunWithLocalSystemPrivileges, setWorkflow, toString
-
Methodendetails
-
getClusterInfo
public de.uplanet.lucy.server.workflow.IClusterInfo getClusterInfo()- Angegeben von:
getClusterInfoin Schnittstellede.uplanet.lucy.server.workflow.INeedClusterInfo
-
setClusterInfo
public void setClusterInfo(de.uplanet.lucy.server.workflow.IClusterInfo p_clusterInfo) - Angegeben von:
setClusterInfoin Schnittstellede.uplanet.lucy.server.workflow.INeedClusterInfo
-
isSendBeforeStartEvent
public boolean isSendBeforeStartEvent()This property determines if anIBeforeStartWatchIMAPFolderWorkflowEventshould be sent.- Angegeben von:
isSendBeforeStartEventin SchnittstelleISupportBeforeStartEvent- Gibt zurück:
trueif the event should be sent before the workflow object's activity is about to being started, orfalseotherwise.
-
setSendBeforeStartEvent
public void setSendBeforeStartEvent(boolean p_bSendBeforeStartEvent) This property determines if anIBeforeStartWatchIMAPFolderWorkflowEventshould be sent.- Angegeben von:
setSendBeforeStartEventin SchnittstelleISupportBeforeStartEvent- Parameter:
p_bSendBeforeStartEvent-trueif the event should be sent before the workflow object's activity is about to being started, orfalseotherwise.
-
isSendAfterStopEvent
public boolean isSendAfterStopEvent()This property determines if anIAfterStopWatchIMAPFolderWorkflowEventshould be sent.- Angegeben von:
isSendAfterStopEventin SchnittstelleISupportAfterStopEvent- Gibt zurück:
trueif the event should be sent after the workflow object's activity has been stopped, orfalseotherwise.
-
setSendAfterStopEvent
public void setSendAfterStopEvent(boolean p_bSendAfterStopEvent) This property determines if anIAfterStopWatchIMAPFolderWorkflowEventshould be sent.- Angegeben von:
setSendAfterStopEventin SchnittstelleISupportAfterStopEvent- Parameter:
p_bSendAfterStopEvent-trueif the event should be sent after the workflow object's activity has been stopped, orfalseotherwise.
-
getDispatchDelay
public long getDispatchDelay()Get the dispatch delay, i.e. the delay before an IMAP message event is dispatched to the workflows.- Gibt zurück:
- The dispatch delay in milliseconds.
-
setDispatchDelay
public void setDispatchDelay(long p_lDispatchDelay) Set the dispatch delay, i.e. the delay before an IMAP message event is dispatched to the workflows.- Parameter:
p_lDispatchDelay- The dispatch delay in milliseconds.
-
isLoadIncomingMessagesImmediately
public boolean isLoadIncomingMessagesImmediately()This property determines if incoming messages should be loaded immediately and be included in the generated events.If set to
falseloading of the message will be delayed until it is accessed through the event's message property.The default value is
false.- Gibt zurück:
trueif incoming messages should be loaded immediately, orfalseotherwise.
-
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
falseloading of the message will be delayed until it is accessed through the event's message property.The default value is
false.- Parameter:
p_bLoadIncomingMessagesImmediately-trueif incoming messages should be loaded immediately, orfalseotherwise.
-
getOnErrorRestartWaitTimeout
public long getOnErrorRestartWaitTimeout()Get the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.The default value is 60000 milliseconds (one minute).
- Gibt zurück:
- The timeout in milliseconds.
-
setOnErrorRestartWaitTimeout
public void setOnErrorRestartWaitTimeout(long p_lOnErrorRestartWaitTimeout) Set the time in milliseconds the event source will wait before it tries to restart after an error occurred that prevented it to running the source loop.- Parameter:
p_lOnErrorRestartWaitTimeout- The timeout in milliseconds.
-
getProtocol
Get the protocol.- Gibt zurück:
- Either
IMAP, orIMAPS, orIMAP_STARTTLS.
-
setProtocol
Set the protocol.- Parameter:
p_strProtocol- The protocol, i.e. eitherIMAP, orIMAPS, orIMAP_STARTTLS.
-
getHost
Get the IMAP server to connect to.- Gibt zurück:
- The IMAP server.
-
setHost
Set the IMAP server to connect to.- Parameter:
p_strHost- The IMAP server.
-
getPort
public int getPort()Get the port the IMAP server listens to.- Gibt zurück:
- The port.
-
setPort
public void setPort(int p_iPort) Set the port the IMAP server listens to.- Parameter:
p_iPort- The port.
-
getFolder
-
setFolder
-
getJavaMailProperties
-
setJavaMailProperties
-
getMessageSelectFilter
Get the filter for selecting messages that are to be processed.- Gibt zurück:
- The message filter.
-
setMessageSelectFilter
Set the filter for selecting messages that are to be processed.- Parameter:
p_selectFilter- The message filter.
-
getFinishAction
Get the action to be performed after an IMAP message has been processed.- Gibt zurück:
- The finish action.
-
setFinishAction
Set the action to be performed after an IMAP message has been processed.- Parameter:
p_finishAction- The finish action.
-