FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java-sdk/src/main/java/dev/openfeature/sdk/EventBus.java at main · open-feature/java-sdk · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
open-feature
/
java-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
60
Star
127
Code
Issues
13
Pull requests
16
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java-sdk
/
src
/
main
/
java
/
dev
/
openfeature
/
sdk
/
EventBus.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
64 lines (56 loc) · 1.82 KB
Breadcrumbs
java-sdk
/
src
/
main
/
java
/
dev
/
openfeature
/
sdk
/
EventBus.java
Copy path
File metadata and controls
64 lines (56 loc) · 1.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package
dev
.
openfeature
.
sdk
;
import
java
.
util
.
function
.
Consumer
;
/**
* Interface for attaching event handlers.
*/
public
interface
EventBus
<
T
> {
/**
* Add a handler for the {@link ProviderEvent#PROVIDER_READY} event.
* Shorthand for {@link #on(ProviderEvent, Consumer)}
*
* @param handler behavior to add with this event
* @return this
*/
T
onProviderReady
(
Consumer
<
EventDetails
>
handler
);
/**
* Add a handler for the {@link ProviderEvent#PROVIDER_CONFIGURATION_CHANGED} event.
* Shorthand for {@link #on(ProviderEvent, Consumer)}
*
* @param handler behavior to add with this event
* @return this
*/
T
onProviderConfigurationChanged
(
Consumer
<
EventDetails
>
handler
);
/**
* Add a handler for the {@link ProviderEvent#PROVIDER_STALE} event.
* Shorthand for {@link #on(ProviderEvent, Consumer)}
*
* @param handler behavior to add with this event
* @return this
*/
T
onProviderError
(
Consumer
<
EventDetails
>
handler
);
/**
* Add a handler for the {@link ProviderEvent#PROVIDER_ERROR} event.
* Shorthand for {@link #on(ProviderEvent, Consumer)}
*
* @param handler behavior to add with this event
* @return this
*/
T
onProviderStale
(
Consumer
<
EventDetails
>
handler
);
/**
* Add a handler for the specified {@link ProviderEvent}.
*
* @param event event type
* @param handler behavior to add with this event
* @return this
*/
T
on
(
ProviderEvent
event
,
Consumer
<
EventDetails
>
handler
);
/**
* Remove the previously attached handler by reference.
* If the handler doesn't exists, no-op.
*
* @param event event type
* @param handler to be removed
* @return this
*/
T
removeHandler
(
ProviderEvent
event
,
Consumer
<
EventDetails
>
handler
);
}
Back
|
FazBrowse Home
|
New Git URL