public class EventConsumerImpl extends ComponentImplBase implements AcsEventSubscriber.Callback<temperatureDataBlockEvent>
m_containerServices, m_instanceName, m_logger| Constructor and Description |
|---|
EventConsumerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Disconnects the Consumer
|
java.lang.Class<temperatureDataBlockEvent> |
getEventType()
This method is needed for adding event-specific subscriptions
and for the type-safety of this API (based on java generics),
and should be implemented like
|
void |
initialize(ContainerServices containerServices)
Sets up the
AcsEventSubscriber. |
void |
receive(temperatureDataBlockEvent joe,
EventDescription eventDescrip)
This method will be called whenever a
temperatureDataBlockEvent becomes available on the channel. |
aboutToAbort, componentState, execute, namepublic void initialize(ContainerServices containerServices) throws ComponentLifecycleException
AcsEventSubscriber.initialize in interface ComponentLifecycleinitialize in class ComponentImplBasecontainerServices - callback object for services provided by the containerComponentLifecycleExceptionComponentLifecycle.initialize(ContainerServices)public void receive(temperatureDataBlockEvent joe,
EventDescription eventDescrip)
temperatureDataBlockEvent becomes available on the channel.receive in interface AcsEventSubscriber.Callback<temperatureDataBlockEvent>joe - The event data, e.g. an IDL-defined struct.eventDescrip - Event meta data.public java.lang.Class<temperatureDataBlockEvent> getEventType()
AcsEventSubscriber.Callback
public Class<MyEvent> getEventType() {
return MyEvent.class;
}
getEventType in interface AcsEventSubscriber.Callback<temperatureDataBlockEvent>public void cleanUp()
throws AcsJComponentCleanUpEx
cleanUp in interface ComponentLifecyclecleanUp in class ComponentImplBaseAcsJComponentCleanUpEx