Skip to content

Commit

Permalink
DatagramFilterExtended and LimitedRunnable#onError javadoc cosmetic c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
Bartłomiej Wiśniewski authored and boaks committed Dec 30, 2022
1 parent 466bec9 commit 41c6cb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public boolean isOverflown() {
/**
* Handles {@code RejectedExecutionException}
* @param ex the thrown exception
*
* @since 3.8
*/
public void onError(RejectedExecutionException ex) {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@
import java.net.DatagramPacket;

/**
* Extension of DatagramFilter
* Extension of DatagramFilter.
*
* @since 3.8
*/
@PublicAPIExtension(type = DatagramFilter.class)
public interface DatagramFilterExtended {

/**
* Called when a datagram packed is dropped. Allows to inject packet based action in form of callback
* Called when a datagram packed is dropped. Allows to inject packet based action in form of callback.
* @param packet the dropped datagram packet
*/
void onDrop(DatagramPacket packet);
/**
* Called when a record is dropped. Allows to inject record based action in form of callback
* Called when a record is dropped. Allows to inject record based action in form of callback.
* @param record the dropped record
*/
void onDrop(Record record);
Expand Down

0 comments on commit 41c6cb8

Please sign in to comment.