Package com.tick42.glue.internal
Class Tick42Glue.Builder
java.lang.Object
com.tick42.glue.internal.Tick42Glue.Builder
- All Implemented Interfaces:
GlueApplication.Builder<Glue.Builder,,Glue> Glue.Builder
- Enclosing class:
- Tick42Glue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the Glue application with the options specified by this builder.Ignore configuration provided via_GD_STARTING_CONTEXT_environment variable.withApplicationName(String applicationName) Set the desired application name.withConfigLoader(Supplier<GlueConfig> configLoader) Set the configuration loader to use.withConnection(com.tick42.gateway.connection.GatewayConnection connection) withInitialListener(GlueEvent.Listener<?>... listeners) withShutdownRequestListener(Consumer<Glue> shutdownRequestListener) Set shutdown listener.withStartingOptions(StartingOptions startingOptions) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tick42.glue.core.GlueApplication.Builder
build
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withConnection
public Tick42Glue.Builder withConnection(com.tick42.gateway.connection.GatewayConnection connection) -
disableStartingContext
Description copied from interface:Glue.BuilderIgnore configuration provided via_GD_STARTING_CONTEXT_environment variable.- Specified by:
disableStartingContextin interfaceGlue.Builder
-
withStartingOptions
-
withConfigLoader
Description copied from interface:GlueApplication.BuilderSet the configuration loader to use.- Specified by:
withConfigLoaderin interfaceGlueApplication.Builder<Glue.Builder,Glue> - Parameters:
configLoader- configuration loader to use, notnull- Returns:
- this builder, never
null
-
withApplicationName
Description copied from interface:GlueApplication.BuilderSet the desired application name.- Specified by:
withApplicationNamein interfaceGlueApplication.Builder<Glue.Builder,Glue> - Parameters:
applicationName- name to use, notnull- Returns:
- this builder, never
null
-
withShutdownRequestListener
Description copied from interface:GlueApplication.BuilderSet shutdown listener.- Specified by:
withShutdownRequestListenerin interfaceGlueApplication.Builder<Glue.Builder,Glue> - Parameters:
shutdownRequestListener- the listener to use, notnull- Returns:
- this builder, never
null
-
withArgs
-
withInitialListener
-
buildAsync
Description copied from interface:GlueApplication.BuilderCreates the Glue application with the options specified by this builder.- Specified by:
buildAsyncin interfaceGlueApplication.Builder<Glue.Builder,Glue> - Returns:
- a stage that completes when the Glue application is fully initialized, never
null
-