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 theBeforeAllCallback.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 Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
    static @interface 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The cache configuration to use.
    com.tangosol.net.Coherence.Mode
    The mode to bootstrap Coherence in.
    Properties to pass to the default session builder, as key value pairs in the format {code "key=value"}.
    int
    The maximum amount of time to wait for Coherence to start.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default maximum amount of time to wait for Coherence to start.
  • Field Details

    • DEFAULT_TIMEOUT

      static final int DEFAULT_TIMEOUT
      The default maximum amount of time to wait for Coherence to start.
      See Also:
  • Element Details

    • config

      String config
      The cache configuration to use.
      Returns:
      the cache configuration to use
      Default:
      ""
    • mode

      com.tangosol.net.Coherence.Mode mode
      The mode to bootstrap Coherence in.
      Returns:
      the mode to bootstrap Coherence in
      Default:
      ClusterMember
    • properties

      String[] properties
      Properties 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 timeout
      The maximum amount of time to wait for Coherence to start.
      Returns:
      the maximum amount of time to wait for Coherence to start
      Default:
      300000