Interface DataAccessSessionBuilder<D>

Type Parameters:
D - The type of the data handled by the created session.

public interface DataAccessSessionBuilder<D>
Builder to configure and create a session via aspectable features.
Since:
5.2.9
  • Method Summary

    Modifier and Type
    Method
    Description
    createSession(@NotNull BaseContext context)
    Create a session based on the given configuration.
    Attention: This call should return very fast.
    <A> A
    Look up a specific aspect that may be supported by this builder.
    Attention: This method may be called very often and must return very fast.
  • Method Details

    • getAspect

      @Nullable <A> A getAspect(@NotNull @NotNull SessionBuilderAspectType<A> type)
      Look up a specific aspect that may be supported by this builder.
      Attention: This method may be called very often and must return very fast.
      Type Parameters:
      A - The object type of the aspect.
      Parameters:
      type - The type of aspect.
      Returns:
      An aspect implementer or null, if the aspect is not supported.
      Since:
      5.2.9
    • createSession

      @NotNull @NotNull DataAccessSession<D> createSession(@NotNull @NotNull BaseContext context)
      Create a session based on the given configuration.
      Attention: This call should return very fast.
      Parameters:
      context - The session operating context.
      Returns:
      The new session.
      Since:
      5.2.9