Interface EventBusMetrics<H>
- All Superinterfaces:
Metrics
The event bus metrics SPI which Vert.x will use to call when each event occurs.
- Author:
- Nick Scavelli
-
Field Summary
Fields inherited from interface Metrics
METRICS_ENABLED -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddiscardMessage(H handler, boolean local, Message<?> msg) Discard a message.default HhandlerRegistered(String address) Called when a handler is registered on the event bus.default voidhandlerUnregistered(H handler) Called when a handler has been unregistered from the event bus.default voidmessageDelivered(H handler, boolean local) Called when an handler has been delivered a message.default voidmessageRead(String address, int numberOfBytes) A message has been received from the network.default voidmessageReceived(String address, boolean publish, boolean local, int handlers) Called when a message is received.default voidmessageSent(String address, boolean publish, boolean local, boolean remote) Called when a message has been sent or published.default voidmessageWritten(String address, int numberOfBytes) A message has been sent over the network.default voidreplyFailure(String address, ReplyFailure failure) Called whenever the event bus delivers a reply failure to the sender/publisher, thereply failureindicates the nature of the failure.default voidscheduleMessage(H handler, boolean local) Schedule a message for processing.
-
Method Details
-
handlerRegistered
-
handlerUnregistered
Called when a handler has been unregistered from the event bus. No specific thread and context can be expected when this method is called.- Parameters:
handler- the unregistered handler
-
scheduleMessage
Schedule a message for processing. No specific thread and context can be expected when this method is called.- Parameters:
handler- the handler processing the messagelocal- when the scheduled message is local
-
discardMessage
-
messageDelivered
Called when an handler has been delivered a message. No specific thread and context can be expected when this method is called.- Parameters:
handler- the handler processing the messagelocal- when the handled message is local
-
messageSent
Called when a message has been sent or published. No specific thread and context can be expected when this method is called.- Parameters:
address- the addresspublish- true when the message is publishedlocal- the message is processed locallyremote- the message is sent on the cluster
-
messageReceived
Called when a message is received. No specific thread and context can be expected when this method is called.- Parameters:
address- the addresspublish- true when the message is publishedlocal- true when the message is received locallyhandlers- the number of handlers that process the message
-
messageWritten
A message has been sent over the network. No specific thread and context can be expected when this method is called.- Parameters:
address- the message addressnumberOfBytes- the number of bytes written
-
messageRead
A message has been received from the network. No specific thread and context can be expected when this method is called.- Parameters:
address- the message addressnumberOfBytes- the number of bytes read
-
replyFailure
Called whenever the event bus delivers a reply failure to the sender/publisher, thereply failureindicates the nature of the failure. No specific thread and context can be expected when this method is called.- Parameters:
address- the addressfailure- theReplyFailure
-