Show / Hide Table of Contents

Class APISubscriberBase<TEvent>

The APISubscriberBase class, that all API event subscribers should inherit from.

Inheritance
java.lang.Object
APISubscriberBase<TEvent>
Implements
org.visab.eventbus.ISubscriber<TEvent>
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Namespace:
Assembly: .dll
Syntax
public abstract class APISubscriberBase<TEvent> implements ISubscriber<TEvent>
Type Parameters
Name Description
TEvent

Constructors

APISubscriberBase(Class<TEvent> eventClass)

Declaration
public APISubscriberBase(Class<TEvent> eventClass)
Parameters
Type Name Description
java.lang.Class<TEvent> eventClass

The class of the event to subscribe to

Methods

getSubscribedEventType()

Gets the subscribed events simple name.

Declaration
public String getSubscribedEventType()
Returns
Type Description
java.lang.String

notify(TEvent event)

Called when a TEvent is published at the EventBus subscribed to. The subscriber is notified with the concrete event.

Declaration
public abstract void notify(TEvent event)
Parameters
Type Name Description
TEvent event

Implements

org.visab.eventbus.ISubscriber<TEvent>
In This Article
Back to top Generated by DocFX