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
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJFR event recorded when a server channel accepts a new client.static classJFR event recorded when accepting an inbound connection fails.static classJFR event recorded when an outbound channel completes its connect handshake.static classJFR event recorded when an outbound connect attempt fails.static classJFR event recorded when a channel disconnects.static classJFR event recorded for a successful channel receive.static classJFR event recorded for a successful channel send.static classJFR event recorded when sending a message on a channel fails. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty event with no detail.ChannelEvent(String detail) Constructs an event with the given detail string. -
Method Summary
-
Field Details
-
detail
-
-
Constructor Details
-
ChannelEvent
public ChannelEvent()Constructs an empty event with no detail. -
ChannelEvent
Constructs an event with the given detail string.- Parameters:
detail- event detail text
-
-
Method Details
-
setDetail
-
getDetail
-
append
Appends additional information to the existing detail string, separated by a comma.- Parameters:
additionalDetail- text to append- Returns:
- this event for chaining
-