You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should print 1 & 2
event consumer 2: Thu Feb 25 18:30:13 EST 2021
event consumer 1: Thu Feb 25 18:30:13 EST 2021
should print 2
event consumer 2: Thu Feb 25 18:30:13 EST 2021
should print none
The HandlerOptions class represents a builder class for the handler annotation. It is accessed in a hacky way by tracking threads.
This works for me, but it'd be great if there was a way to have something similar implimented without the current thread hack. Below are the two class modifications
I wanted to find a way to use lambdas with this library, so that listeners can be created like this:
I was able to achieve this by adding 2 methods and a couple of hacks that depend on this library:
https://github.com/jhalterman/typetools/
The methods are:
This allows me to simplify code as such:
Code:
Output:
The HandlerOptions class represents a builder class for the handler annotation. It is accessed in a hacky way by tracking threads.
This works for me, but it'd be great if there was a way to have something similar implimented without the current thread hack. Below are the two class modifications
MBassadorLFP.java
HandlerOptions.java
The text was updated successfully, but these errors were encountered: