Class ChannelEvent

java.lang.Object
jdk.jfr.Event
org.jpos.jfr.ChannelEvent
Direct Known Subclasses:
ChannelEvent.Accept, ChannelEvent.AcceptException, ChannelEvent.Connect, ChannelEvent.ConnectionException, ChannelEvent.Disconnect, ChannelEvent.Receive, ChannelEvent.Send, ChannelEvent.SendException

public class ChannelEvent extends Event
Base JFR event emitted from the jPOS channel layer.

Concrete subclasses (declared as static inner classes) tag specific channel lifecycle moments — connect, accept, send, receive, disconnect, and their exceptional variants.

  • Field Details

    • detail

      protected String detail
      Free-form event detail, recorded as the JFR field detail.
  • Constructor Details

    • ChannelEvent

      public ChannelEvent()
      Constructs an empty event with no detail.
    • ChannelEvent

      public ChannelEvent(String detail)
      Constructs an event with the given detail string.
      Parameters:
      detail - event detail text
  • Method Details

    • setDetail

      public void setDetail(String detail)
      Replaces the event detail.
      Parameters:
      detail - event detail text
    • getDetail

      public String getDetail()
      Returns the current event detail.
      Returns:
      event detail text, or null if not set
    • append

      public ChannelEvent append(String additionalDetail)
      Appends additional information to the existing detail string, separated by a comma.
      Parameters:
      additionalDetail - text to append
      Returns:
      this event for chaining