Class TaskReactorInstance
- java.lang.Object
-
- com.snowflake.connectors.taskreactor.registry.TaskReactorInstance
-
public class TaskReactorInstance extends Object
Task Reactor instance representation.
-
-
Constructor Summary
Constructors Constructor Description TaskReactorInstance(Identifier instanceName, boolean isInitialized, boolean isActive)
Creates a newTaskReactorInstance
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Identifier
instanceName()
Returns the instance name.boolean
isActive()
Returns whether the instance is active.boolean
isInitialized()
Returns whether the instance is initialized.String
toString()
TaskReactorInstance
withActive(boolean isActive)
Returns a copy of this instance, with the active parameter set to the specified value.
-
-
-
Constructor Detail
-
TaskReactorInstance
public TaskReactorInstance(Identifier instanceName, boolean isInitialized, boolean isActive)
Creates a newTaskReactorInstance
.- Parameters:
instanceName
- Task Reactor instance nameisInitialized
- is instance initializedisActive
- is instance active
-
-
Method Detail
-
instanceName
public Identifier instanceName()
Returns the instance name.- Returns:
- instance name
-
isInitialized
public boolean isInitialized()
Returns whether the instance is initialized.- Returns:
- whether the instance is initialized
-
isActive
public boolean isActive()
Returns whether the instance is active.- Returns:
- whether the instance is active
-
withActive
public TaskReactorInstance withActive(boolean isActive)
Returns a copy of this instance, with the active parameter set to the specified value.- Parameters:
isActive
- whether the instance is active- Returns:
- a copy of this instance
-
-