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, getRequestInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserConfigContainer
getConnectorConfig, getJobRunInfo, getRequestInfo
protected AbstractStartContext(ConnectorConfig connectorConfig, JobRunInfo jobRunInfo, RequestInfo requestInfo, ConnectorConfig lastUsedConnectorConfig, boolean hasExclusiveExecution)
public StartResult newResult()
newResult
in interface FetcherContext
newResult
in interface FetcherContext.StartContext
public <T extends ConnectorConfig> java.util.Optional<T> getLastUsedConnectorConfig()
getLastUsedConnectorConfig
in interface FetcherContext.StartContext
public void exclusively(java.lang.Runnable runnable)
runnable
- public boolean hasExeclusiveExecution()