Skip to content

Commit

Permalink
refactor: Make predefined event types as final (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
djenczewski committed Dec 13, 2024
1 parent a4212ad commit 24fadfe
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
/**
* Predefined event type that captures successful platform connection events.
*/
public static EventType<Void> ConnectedEvent = new EventType<>(
public static final EventType<Void> ConnectedEvent = new EventType<>(
"",
"libConnected",
Void.class
Expand All @@ -68,7 +68,7 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
* Predefined event type to catch special events.
* This type could be used to emit/handle events with custom implementations (e.g. to break event loops).
*/
public static EventType<Void> LibBreakEvent = new EventType<>(
public static final EventType<Void> LibBreakEvent = new EventType<>(
"",
"libBreak",
Void.class
Expand All @@ -77,7 +77,7 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
/**
* Predefined event type to catch disconnection events.
*/
public static EventType<Void> DisconnectedEvent = new EventType<>(
public static final EventType<Void> DisconnectedEvent = new EventType<>(
"",
"libDisconnected",
Void.class
Expand All @@ -86,7 +86,7 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
/**
* Predefined event type to catch created Thread events.
*/
public static EventType<Thread> ThreadCreatedEvent = new EventType<>(
public static final EventType<Thread> ThreadCreatedEvent = new EventType<>(
"thread",
"threadCreated",
Thread.class
Expand All @@ -95,7 +95,7 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
/**
* Predefined event type to catch updated Thread events.
*/
public static EventType<Thread> ThreadUpdatedEvent = new EventType<>(
public static final EventType<Thread> ThreadUpdatedEvent = new EventType<>(
"thread",
"threadUpdated",
Thread.class
Expand All @@ -104,7 +104,7 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
/**
* Predefined event type to catch updated Thread stats events.
*/
public static EventType<ThreadStatsEventData> ThreadStatsChangedEvent = new EventType<>(
public static final EventType<ThreadStatsEventData> ThreadStatsChangedEvent = new EventType<>(
"thread",
"threadStats",
ThreadStatsEventData.class
Expand All @@ -113,39 +113,39 @@ private EventType(String channel, String eventType, Class<T> eventClass) {
/**
* Predefined event type to catch deleted Thread events.
*/
public static EventType<ThreadDeletedEventData> ThreadDeletedEvent = new EventType<>(
public static final EventType<ThreadDeletedEventData> ThreadDeletedEvent = new EventType<>(
"thread",
"threadDeleted",
ThreadDeletedEventData.class
);
/**
* Predefined event type to catch created Store events.
*/
public static EventType<Store> StoreCreatedEvent = new EventType<>(
public static final EventType<Store> StoreCreatedEvent = new EventType<>(
"store",
"storeCreated",
Store.class
);
/**
* Predefined event type to catch updated Store events.
*/
public static EventType<Store> StoreUpdatedEvent = new EventType<>(
public static final EventType<Store> StoreUpdatedEvent = new EventType<>(
"store",
"storeUpdated",
Store.class
);
/**
* Predefined event type to catch updated Store stats events.
*/
public static EventType<StoreStatsChangedEventData> StoreStatsChangedEvent = new EventType<>(
public static final EventType<StoreStatsChangedEventData> StoreStatsChangedEvent = new EventType<>(
"store",
"storeStatsChanged",
StoreStatsChangedEventData.class
);
/**
* Predefined event type to catch deleted Store stats events.
*/
public static EventType<StoreDeletedEventData> StoreDeletedEvent = new EventType<>(
public static final EventType<StoreDeletedEventData> StoreDeletedEvent = new EventType<>(
"store",
"storeDeleted",
StoreDeletedEventData.class
Expand Down

0 comments on commit 24fadfe

Please sign in to comment.