Class Streaming.StopConfiguration
java.lang.Object
org.talend.sdk.component.runtime.input.Streaming.StopConfiguration
- All Implemented Interfaces:
Serializable,Streaming.StopStrategy
- Enclosing class:
- Streaming
public static class Streaming.StopConfiguration
extends Object
implements Streaming.StopStrategy, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()Check if the stop strategy is active according specified conditions.booleanshouldStop(long readRecords) Check the stop strategy conditions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.talend.sdk.component.runtime.input.Streaming.StopStrategy
getMaxActiveTime, getMaxReadRecords, getStartedAtTime
-
Constructor Details
-
StopConfiguration
public StopConfiguration() -
StopConfiguration
-
-
Method Details
-
isActive
Description copied from interface:Streaming.StopStrategyCheck if the stop strategy is active according specified conditions.- Specified by:
isActivein interfaceStreaming.StopStrategy- Returns:
- true if strategy is active, false otherwise.
-
shouldStop
Description copied from interface:Streaming.StopStrategyCheck the stop strategy conditions.- Specified by:
shouldStopin interfaceStreaming.StopStrategy- Parameters:
readRecords- - already read records.- Returns:
- true if the lifecycle should be stopped, false otherwise.
-