Class ConsumerBlueprint

java.lang.Object
io.fluxzero.sdk.registry.ConsumerBlueprint
All Implemented Interfaces:
AutoCloseable

public final class ConsumerBlueprint extends Object implements AutoCloseable
Lifecycle-bound projection of the effective handlers assigned to one consumer. The same contract can later be supplied by generated metadata; it contains no application objects or executable code on the wire.
  • Constructor Details

  • Method Details

    • getFilter

      public ConsumerFilter getFilter()
      Current immutable projection, including its monotonic application-local revision.
    • mayHandle

      public boolean mayHandle(SerializedMessage message)
      Whether the current conservative projection admits this serialized input, without executing application code.
    • refresh

      public void refresh()
      Publishes a new projection after registration changes; listeners establish the remote activation boundary. Every listener is notified even when another fails. Activation failures remain visible to the caller.
    • observe

      public Registration observe(Consumer<ConsumerFilter> listener)
      Observes future projections. Newly opened reads always carry getFilter() themselves.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable