Class LocalServicePolicy

  • All Implemented Interfaces:
    DocumentProtocolRoutingPolicy, com.yahoo.messagebus.routing.RoutingPolicy

    public class LocalServicePolicy
    extends java.lang.Object
    implements DocumentProtocolRoutingPolicy
    This policy implements the logic to prefer local services that matches a slobrok pattern.
    Author:
    Simon Thoresen Hult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void merge​(com.yahoo.messagebus.routing.RoutingContext ctx)  
      void select​(com.yahoo.messagebus.routing.RoutingContext ctx)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • select

        public void select​(com.yahoo.messagebus.routing.RoutingContext ctx)
        Specified by:
        select in interface com.yahoo.messagebus.routing.RoutingPolicy
      • merge

        public void merge​(com.yahoo.messagebus.routing.RoutingContext ctx)
        Specified by:
        merge in interface com.yahoo.messagebus.routing.RoutingPolicy
      • destroy

        public void destroy()
        Specified by:
        destroy in interface com.yahoo.messagebus.routing.RoutingPolicy