Class FetcherContext.AbstractStartContext
java.lang.Object
com.lucidworks.fusion.connector.plugin.api.fetcher.context.AbstractFetcherContext
com.lucidworks.fusion.connector.plugin.api.fetcher.context.FetcherContext.AbstractStartContext
- All Implemented Interfaces:
FetcherContext,FetcherContext.StartContext
- Direct Known Subclasses:
FetcherContext.DefaultStartContext
- Enclosing interface:
- FetcherContext
public abstract static class FetcherContext.AbstractStartContext
extends AbstractFetcherContext
implements FetcherContext.StartContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.lucidworks.fusion.connector.plugin.api.fetcher.context.FetcherContext
FetcherContext.AbstractFetchContext, FetcherContext.AbstractStartContext, FetcherContext.AbstractStopContext, FetcherContext.DefaultFetchContext, FetcherContext.DefaultStartContext, FetcherContext.DefaultStopContext, FetcherContext.FetchContext, FetcherContext.StartContext, FetcherContext.StopContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStartContext(ConnectorConfig connectorConfig, JobRunInfo jobRunInfo, RequestInfo requestInfo, ConnectorConfig lastUsedConnectorConfig, boolean hasExclusiveExecution) -
Method Summary
Modifier and TypeMethodDescriptionvoidexclusively(Runnable runnable) Accepts a runnable which is only executed on 1 plugin instance.<T extends ConnectorConfig>
Optional<T>booleanMethods inherited from class com.lucidworks.fusion.connector.plugin.api.fetcher.context.AbstractFetcherContext
getConnectorConfig, getJobRunInfo, getRequestInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lucidworks.fusion.connector.plugin.api.fetcher.context.FetcherContext
getConnectorConfig, getJobRunInfo, getRequestInfoMethods inherited from interface com.lucidworks.fusion.connector.plugin.api.fetcher.context.FetcherContext.StartContext
getParserConfigContainer
-
Constructor Details
-
AbstractStartContext
protected AbstractStartContext(ConnectorConfig connectorConfig, JobRunInfo jobRunInfo, RequestInfo requestInfo, ConnectorConfig lastUsedConnectorConfig, boolean hasExclusiveExecution)
-
-
Method Details
-
newResult
- Specified by:
newResultin interfaceFetcherContext- Specified by:
newResultin interfaceFetcherContext.StartContext
-
getLastUsedConnectorConfig
- Specified by:
getLastUsedConnectorConfigin interfaceFetcherContext.StartContext
-
exclusively
Accepts a runnable which is only executed on 1 plugin instance. Note that the selection of an instance is purely up to the framework implementation.- Parameters:
runnable-
-
hasExeclusiveExecution
public boolean hasExeclusiveExecution()
-