Class GovernanceBuilderImpl<E,F extends Enum<F>>
java.lang.Object
net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder<F>
net.officefloor.frame.impl.construct.governance.GovernanceBuilderImpl<E,F>
- All Implemented Interfaces:
FunctionBuilder<F>,GovernanceBuilder<F>,FunctionConfiguration<F>,GovernanceConfiguration<E,F>
public class GovernanceBuilderImpl<E,F extends Enum<F>>
extends AbstractFunctionBuilder<F>
implements GovernanceBuilder<F>, GovernanceConfiguration<E,F>
GovernanceBuilder implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceBuilderImpl(String governanceName, Class<E> extensionType, GovernanceFactory<? super E, F> governanceFactory) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionlongObtains the timeout for anyAsynchronousFlowinstigated.Obtains the extension interface type forManagedObjectto provide to enableGovernance.GovernanceFactory<? super E,F> Obtains theGovernanceFactory.Obtains the name of theGovernance.voidsetAsynchronousFlowTimeout(long timeout) Specifies the timeout to forAsynchronousFlowinstances for thisGovernance.Methods inherited from class net.officefloor.frame.impl.construct.function.AbstractFunctionBuilder
addEscalation, getEscalations, getFlowConfiguration, getResponsibleTeamName, linkFlow, linkFlow, setResponsibleTeamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.frame.api.build.FunctionBuilder
addEscalation, linkFlow, linkFlow, setResponsibleTeamMethods inherited from interface net.officefloor.frame.internal.configuration.FunctionConfiguration
getEscalations, getFlowConfiguration, getResponsibleTeamName
-
Constructor Details
-
GovernanceBuilderImpl
public GovernanceBuilderImpl(String governanceName, Class<E> extensionType, GovernanceFactory<? super E, F> governanceFactory) Initiate.- Parameters:
governanceName- Name of theGovernance.extensionType- Extension interface.governanceFactory-GovernanceFactory.
-
-
Method Details
-
setAsynchronousFlowTimeout
public void setAsynchronousFlowTimeout(long timeout) Description copied from interface:GovernanceBuilderSpecifies the timeout to forAsynchronousFlowinstances for thisGovernance.- Specified by:
setAsynchronousFlowTimeoutin interfaceGovernanceBuilder<E>- Parameters:
timeout- Timeout.
-
getGovernanceName
Description copied from interface:GovernanceConfigurationObtains the name of theGovernance.- Specified by:
getGovernanceNamein interfaceGovernanceConfiguration<E,F extends Enum<F>> - Returns:
- Name of the
Governance.
-
getGovernanceFactory
Description copied from interface:GovernanceConfigurationObtains theGovernanceFactory.- Specified by:
getGovernanceFactoryin interfaceGovernanceConfiguration<E,F extends Enum<F>> - Returns:
GovernanceFactory.
-
getExtensionType
Description copied from interface:GovernanceConfigurationObtains the extension interface type forManagedObjectto provide to enableGovernance.- Specified by:
getExtensionTypein interfaceGovernanceConfiguration<E,F extends Enum<F>> - Returns:
- Extension interface type for
ManagedObjectto provide to enableGovernance.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()Description copied from interface:GovernanceConfigurationObtains the timeout for anyAsynchronousFlowinstigated.- Specified by:
getAsynchronousFlowTimeoutin interfaceGovernanceConfiguration<E,F extends Enum<F>> - Returns:
- Timeout for any
AsynchronousFlowinstigated.
-