From 0ace362cc598021705fcfa97d1fd040118d25ef6 Mon Sep 17 00:00:00 2001 From: Michael Barker Date: Thu, 29 Aug 2024 11:37:52 +1200 Subject: [PATCH] [Java] Update Javadoc. --- .../src/main/java/io/aeron/agent/DriverEventCode.java | 3 +++ .../java/io/aeron/PublicationErrorFrameHandler.java | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/aeron-agent/src/main/java/io/aeron/agent/DriverEventCode.java b/aeron-agent/src/main/java/io/aeron/agent/DriverEventCode.java index 127a58d0d3c..120b159a3f7 100644 --- a/aeron-agent/src/main/java/io/aeron/agent/DriverEventCode.java +++ b/aeron-agent/src/main/java/io/aeron/agent/DriverEventCode.java @@ -212,6 +212,9 @@ public enum DriverEventCode implements EventCode RESEND(55, (code, buffer, offset, builder) -> DriverEventDissector.dissectResend(buffer, offset, builder)), + /** + * Reject image command received by the driver. + */ CMD_IN_REJECT_IMAGE(56, DriverEventDissector::dissectCommand); static final int EVENT_CODE_TYPE = EventCodeType.DRIVER.getTypeCode(); diff --git a/aeron-client/src/main/java/io/aeron/PublicationErrorFrameHandler.java b/aeron-client/src/main/java/io/aeron/PublicationErrorFrameHandler.java index f095b0cd85c..163f637d9e1 100644 --- a/aeron-client/src/main/java/io/aeron/PublicationErrorFrameHandler.java +++ b/aeron-client/src/main/java/io/aeron/PublicationErrorFrameHandler.java @@ -22,12 +22,10 @@ */ public interface PublicationErrorFrameHandler { - PublicationErrorFrameHandler NO_OP = new PublicationErrorFrameHandler() - { - public void onPublicationError(final PublicationErrorFrame errorFrame) - { - } - }; + /** + * Default no-op error frame handler. + */ + PublicationErrorFrameHandler NO_OP = errorFrame -> {}; /** * Called when an error frame for a publication is received by the local driver and needs to be propagated to the