public abstract static class FetcherContext.AbstractStartContext extends AbstractFetcherContext implements FetcherContext.StartContext
FetcherContext.AbstractFetchContext, FetcherContext.AbstractStartContext, FetcherContext.AbstractStopContext, FetcherContext.DefaultFetchContext, FetcherContext.DefaultStartContext, FetcherContext.DefaultStopContext, FetcherContext.FetchContext, FetcherContext.StartContext, FetcherContext.StopContext| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStartContext(ConnectorConfig connectorConfig,
JobRunInfo jobRunInfo,
RequestInfo requestInfo,
ConnectorConfig lastUsedConnectorConfig,
boolean hasExclusiveExecution) |
| Modifier and Type | Method and Description |
|---|---|
void |
exclusively(java.lang.Runnable runnable)
Accepts a runnable which is only executed on 1 plugin instance.
|
<T extends ConnectorConfig> |
getLastUsedConnectorConfig() |
boolean |
hasExeclusiveExecution() |
StartResult |
newResult() |
getConnectorConfig, getJobRunInfo, getRequestInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParserConfigContainergetConnectorConfig, getJobRunInfo, getRequestInfoprotected AbstractStartContext(ConnectorConfig connectorConfig, JobRunInfo jobRunInfo, RequestInfo requestInfo, ConnectorConfig lastUsedConnectorConfig, boolean hasExclusiveExecution)
public StartResult newResult()
newResult in interface FetcherContextnewResult in interface FetcherContext.StartContextpublic <T extends ConnectorConfig> java.util.Optional<T> getLastUsedConnectorConfig()
getLastUsedConnectorConfig in interface FetcherContext.StartContextpublic void exclusively(java.lang.Runnable runnable)
runnable - public boolean hasExeclusiveExecution()