Class ModeSplitter

java.lang.Object
io.vertx.up.uca.rs.dispatch.ModeSplitter

public class ModeSplitter extends Object
Splitter to getNull executor reference. It will happen in startup of route building to avoid request resource spending. 1. Level 1: Distinguish whether enable EventBus EventBus mode: Async Non-EventBus mode: Sync 2. Level 2: Distinguish the request mode One-Way mode: No response needed. ( Return Type ) Request-Response mode: Must require response. ( Return Type ) Support modes: 1. AsyncAim: Event Bus: Request-Response 2. SyncAim: Non-Event Bus: Request-Response 3. OneWayAim: Event Bus: One-Way 4. BlockAim: Non-Event Bus: One-Way 5. Vert.x Style Request -> Event -> Response 6. Rpc Style for @Ipc annotation
  • Constructor Details

    • ModeSplitter

      public ModeSplitter()
  • Method Details

    • distribute

      public Aim<io.vertx.ext.web.RoutingContext> distribute(Event event)