integration_wiretap 1.0.0

Download zip

class: integration_wiretap_module

[23:14] static extends: object

Module JAR loader class. Loads the bundled jar that backs the Wiretap before any extern class resolves.

Methods

class: Wiretap

[48:14] (extern: com.lehman.aussom.Wiretap) extends: object

Wiretap is the classic EIP Wire Tap: as messages move through a flow, you hand each one to the Wiretap so it can be monitored, logged, audited, or debugged on the side, without slowing or changing the main flow. It is, in essence, an async queue with a handler. The app submits a message with a fast tap() call that only enqueues and returns; a background worker later drains the queue and calls the handler, which does the actual tap work. It is an Aussom Server client listener: register it with app.registerListener and the server runtime runs its background worker on a dedicated thread. Feed it messages with tap() from any thread. The Wiretap is standalone, generic, and minimal. It takes one message and nothing else, the message may be any Aussom value, and it never looks inside it. Any condition on what to tap lives in the caller's own code before it calls tap(). If the queue is full, tap() drops the new message rather than block, and counts it (getDroppedCount). The Wiretap does not copy the message, so the handler must treat it as read-only.

Methods