Show / Hide Table of Contents

Class SessionListenerFactory

The SessionListenerFactory that will instantiate new SessionListeners whenever a new transmission session is opened at the WebApi.

Inheritance
java.lang.Object
APISubscriberBase
SessionListenerFactory
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)
APISubscriberBase.getSubscribedEventType()
APISubscriberBase.notify(TEvent)
Namespace:
Assembly: .dll
Syntax
public class SessionListenerFactory extends APISubscriberBase<SessionOpenedEvent>

Constructors

SessionListenerFactory()

Declaration
public SessionListenerFactory()

Methods

addListener(UUID sessionId, IMetaInformation metaInformation)

Instantiates a new listener based on the given game, adds it to the SessionListenerAdministration and finally initializes it with the given meta information.

Declaration
public void addListener(UUID sessionId, IMetaInformation metaInformation)
Parameters
Type Name Description
java.util.UUID sessionId

The sessionId that the listener will listen to

IMetaInformation metaInformation

The meta information using which the session was opened

notify(SessionOpenedEvent event)

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

Declaration
public void notify(SessionOpenedEvent event)
Parameters
Type Name Description
SessionOpenedEvent event
Overrides
APISubscriberBase<TEvent>.notify(TEvent event)

startFactory()

Starts the Factory by subscribing it to the EventBus.

Declaration
public void startFactory()

stopFactory()

Stops the factory by unsubscribing it from the eventbus.

Declaration
public void stopFactory()
In This Article
Back to top Generated by DocFX