Class PrintListener

All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable, NotificationQueue.Dependency, LivenessManager, LivenessNode, LivenessReferent, ListenerBase, ShiftAwareListener, Serializable

@ScriptApi
public class PrintListener
extends InstrumentedShiftAwareListener
A simple listener that prints out each update received from a table.

This can be used to debug the performance of a query by attaching to various tables in an effort to understand the update pattern. Optionally, you can also print out the head of the table.

Output is directed to stdout, thus this should not be enabled in production queries.

After you are finished, call the stop() method to remove this listener from the source table.

See Also:
Serialized Form