Class DisposableWrapper
java.lang.Object
com.github.philippheuer.events4j.api.domain.DisposableWrapper
- All Implemented Interfaces:
IDisposable,IEventSubscription
-
Constructor Summary
ConstructorsConstructorDescriptionDisposableWrapper(IDisposable disposable, String id, Class eventType, Consumer consumer, Map<String, IEventSubscription> activeSubscriptions) -
Method Summary
-
Constructor Details
-
DisposableWrapper
public DisposableWrapper(IDisposable disposable, String id, Class eventType, Consumer consumer, Map<String, IEventSubscription> activeSubscriptions)
-
-
Method Details
-
dispose
public void dispose()Dispose- Specified by:
disposein interfaceIDisposable
-
isDisposed
public boolean isDisposed()Description copied from interface:IDisposableThis method is used to check if the object has been disposed of. It is typically used to check if it is safe to call the `dispose()` method again.- Specified by:
isDisposedin interfaceIDisposable- Returns:
- boolean
-
getDisposable
-
getId
- Specified by:
getIdin interfaceIEventSubscription
-
getEventType
- Specified by:
getEventTypein interfaceIEventSubscription
-
getConsumer
- Specified by:
getConsumerin interfaceIEventSubscription
-
getActiveSubscriptions
-
toString
-