Interface OfficeFloorConfiguration
-
- All Known Implementing Classes:
OfficeFloorBuilderImpl
public interface OfficeFloorConfiguration
Configuration for anOfficeFloor
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EscalationHandler
getEscalationHandler()
Obtains theEscalationHandler
for issues escalating out of theOffice
instances.ExecutiveConfiguration<?>
getExecutiveConfiguration()
Obtains the configuration of theExecutive
for theOfficeFloor
.ManagedObjectSourceConfiguration<?,?>[]
getManagedObjectSourceConfiguration()
Obtains the configuration of theManagedObjectSource
instances.long
getMaxStartupWaitTime()
Obtains the maximum time in milliseconds to wait forOfficeFloor
to start.OfficeConfiguration[]
getOfficeConfiguration()
Obtains the configuration of theOffice
instances on theOfficeFloor
.java.lang.String
getOfficeFloorName()
Obtains the name of theOfficeFloor
.OfficeVisitor[]
getOfficeVisitors()
Obtains theOfficeVisitor
instances.java.lang.String[]
getProfiles()
Obtains the profiles.SourceContext
getSourceContext(java.lang.String sourceName, java.util.function.Supplier<ClockFactory> clockFactoryProvider)
Obtains theSourceContext
.TeamConfiguration<?>[]
getTeamConfiguration()
Obtains the configuration of theTeam
instances on theOfficeFloor
.java.util.function.Consumer<java.lang.Thread>
getThreadDecorator()
Obtains the decorator ofThread
instances created by theTeamSourceContext
.
-
-
-
Method Detail
-
getOfficeFloorName
java.lang.String getOfficeFloorName()
Obtains the name of theOfficeFloor
.- Returns:
OfficeFloor
.
-
getMaxStartupWaitTime
long getMaxStartupWaitTime()
Obtains the maximum time in milliseconds to wait forOfficeFloor
to start.- Returns:
- Maximum time in milliseconds to wait for
OfficeFloor
to start.
-
getProfiles
java.lang.String[] getProfiles()
Obtains the profiles.- Returns:
- Profiles.
-
getSourceContext
SourceContext getSourceContext(java.lang.String sourceName, java.util.function.Supplier<ClockFactory> clockFactoryProvider)
Obtains theSourceContext
.- Parameters:
sourceName
- Name of source.clockFactoryProvider
- ProvidesClockFactory
if one not configured.- Returns:
SourceContext
.
-
getThreadDecorator
java.util.function.Consumer<java.lang.Thread> getThreadDecorator()
Obtains the decorator ofThread
instances created by theTeamSourceContext
.- Returns:
- Decorator of
Thread
instances created by theTeamSourceContext
. May benull
.
-
getManagedObjectSourceConfiguration
ManagedObjectSourceConfiguration<?,?>[] getManagedObjectSourceConfiguration()
Obtains the configuration of theManagedObjectSource
instances.- Returns:
ManagedObjectSource
configuration.
-
getTeamConfiguration
TeamConfiguration<?>[] getTeamConfiguration()
Obtains the configuration of theTeam
instances on theOfficeFloor
.- Returns:
TeamConfiguration
instances.
-
getExecutiveConfiguration
ExecutiveConfiguration<?> getExecutiveConfiguration()
Obtains the configuration of theExecutive
for theOfficeFloor
.- Returns:
ExecutiveConfiguration
.
-
getOfficeConfiguration
OfficeConfiguration[] getOfficeConfiguration()
Obtains the configuration of theOffice
instances on theOfficeFloor
.- Returns:
OfficeConfiguration
instances.
-
getOfficeVisitors
OfficeVisitor[] getOfficeVisitors()
Obtains theOfficeVisitor
instances.- Returns:
OfficeVisitor
instances.
-
getEscalationHandler
EscalationHandler getEscalationHandler()
Obtains theEscalationHandler
for issues escalating out of theOffice
instances.- Returns:
EscalationHandler
for issues escalating out of theOffice
instances. May benull
.
-
-