Interface RoutingBindingContext

    • Method Detail

      • bridge

        <E> void bridge​(Class<E> expectedType,
                        RoutingBridge<E> bridge)
        Sets the object responsible for routing indexed entities to the correct index/shard.
        Type Parameters:
        E - The expected entity type.
        Parameters:
        expectedType - The expected entity type.
        bridge - The bridge to use when indexing.
      • bridge

        <E> void bridge​(Class<E> expectedType,
                        BeanHolder<? extends RoutingBridge<E>> bridgeHolder)
        Sets the object responsible for routing indexed entities to the correct index/shard.
        Type Parameters:
        E - The expected entity type.
        Parameters:
        expectedType - The expected entity type.
        bridgeHolder - A BeanHolder containing the bridge to use when indexing.
      • bridgedElement

        @Incubating
        PojoModelType bridgedElement()
        Returns:
        An entry point allowing to declare expectations and retrieve accessors to the bridged POJO type (i.e. the indexed type).