Package com.oracle.bedrock.junit
Annotation Interface BootstrapCoherence
@Target(TYPE)
@Retention(RUNTIME)
@ExtendWith(BootstrapCoherenceExtension.class)
public @interface BootstrapCoherence
A JUnit 5 extension annotation that bootstraps a local Coherence cluster member
in the
BeforeAllCallback.beforeAll(ExtensionContext) method and shuts-down
Coherence in the AfterAllCallback.afterAll(ExtensionContext) method.- Since:
- 22.06
- Author:
- Jonathan Knight 2022.06.23
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic @interface -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe cache configuration to use.com.tangosol.net.Coherence.ModeThe mode to bootstrap Coherence in.String[]Properties to pass to the default session builder, as key value pairs in the format {code "key=value"}.intThe maximum amount of time to wait for Coherence to start. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default maximum amount of time to wait for Coherence to start.
-
Field Details
-
DEFAULT_TIMEOUT
static final int DEFAULT_TIMEOUTThe default maximum amount of time to wait for Coherence to start.- See Also:
-
-
Element Details
-
config
String configThe cache configuration to use.- Returns:
- the cache configuration to use
- Default:
""
-
mode
com.tangosol.net.Coherence.Mode modeThe mode to bootstrap Coherence in.- Returns:
- the mode to bootstrap Coherence in
- Default:
ClusterMember
-
properties
String[] propertiesProperties to pass to the default session builder, as key value pairs in the format {code "key=value"}.- Returns:
- properties to pass to the default session builder
- Default:
{}
-
timeout
int timeoutThe maximum amount of time to wait for Coherence to start.- Returns:
- the maximum amount of time to wait for Coherence to start
- Default:
300000
-