T - The type that the Informer is publishing.public abstract class AbstractRSBDualConnection<T extends com.google.protobuf.GeneratedMessage & com.google.protobuf.MessageOrBuilder> extends AbstractRSBListenerConnection
initialized, listenerWatchDog| Constructor and Description |
|---|
AbstractRSBDualConnection(rsb.AbstractEventHandler handler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
protected abstract org.openbase.jul.extension.rsb.iface.RSBInformer<T> |
getInitializedInformer()
Gets the initialized RSB Informer.
|
void |
init() |
boolean |
isActive() |
void |
publishData(T data) |
void |
publishEvent(rsb.Event event) |
protected abstract void |
registerConverters()
Registers the converters required by the listener and informer.
|
getInitializedListener, initListener, registerConverterForTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterShutdownHook, registerShutdownHookgetLocalConfigpublic AbstractRSBDualConnection(rsb.AbstractEventHandler handler)
handler - is used to handle incoming events.protected abstract org.openbase.jul.extension.rsb.iface.RSBInformer<T> getInitializedInformer() throws org.openbase.jul.exception.InitializationException
org.openbase.jul.exception.InitializationException - is thrown, if the initialization of the
Informer fails.public void publishData(T data) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void publishEvent(rsb.Event event)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionprotected abstract void registerConverters()
registerConverters in class AbstractRSBListenerConnectionpublic void init()
throws org.openbase.jul.exception.InitializationException,
InterruptedException
init in interface org.openbase.jul.iface.DefaultInitializableinit in interface org.openbase.jul.iface.DefaultInitializableImpl<Void>init in interface org.openbase.jul.iface.VoidInitializableinit in class AbstractRSBListenerConnectionorg.openbase.jul.exception.InitializationExceptionInterruptedExceptionpublic void activate()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
activate in interface org.openbase.jul.iface.Activatableactivate in class AbstractRSBListenerConnectionorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic void deactivate()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
deactivate in interface org.openbase.jul.iface.Activatabledeactivate in class AbstractRSBListenerConnectionorg.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic boolean isActive()
isActive in interface org.openbase.jul.iface.ActivatableisActive in class AbstractRSBListenerConnectionCopyright © 2016–2018 openbase.org. All rights reserved.