public interface OutputPluginModel<X,T> extends Runnable, Identifiable
Modifier and Type | Method and Description |
---|---|
void |
addToEventList(EventModel event)
Adds an event to blockingQueue
|
com.google.common.reflect.TypeToken<X> |
getArgumentType()
returns the Type of the argument for the OutputExtensions, or null if none
|
com.google.common.reflect.TypeToken<T> |
getReceivingType()
returns the Type of the one wants to receive from the OutputExtensions
|
boolean |
isRunning()
returns whether the OutputPlugin is running
|
void |
outputExtensionAdded(Identification identification)
callback method to notify that an OutputExtension was added
|
void |
outputExtensionRemoved(Identification identification)
callback method to notify that an OutputExtension was added
|
void |
stop()
stops the OutputPlugin
|
getID, isOwner
void addToEventList(EventModel event)
event
- the event to addIllegalStateException
- raised if problems adding an event to blockingQueuevoid outputExtensionAdded(Identification identification)
identification
- the Identification of the OutputExtension addedvoid outputExtensionRemoved(Identification identification)
identification
- the Identification of the OutputExtension addedboolean isRunning()
void stop()
com.google.common.reflect.TypeToken<T> getReceivingType()
com.google.common.reflect.TypeToken<X> getArgumentType()
Copyright © 2016. All rights reserved.