Class OMRSTopicListenerWrapper
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerWrapper
-
- All Implemented Interfaces:
OMRSTopicListener,OMRSTopicRepositoryEventListener
public class OMRSTopicListenerWrapper extends Object implements OMRSTopicListener
OMRSTopicListenerWrapper is a class that wraps a real OMRSTopicListener when it registers with the OMRSTopicConnector. Its sole purpose is to catch exceptions from the real OMRSTopicListener and create diagnostics. The listeners are called in parallel with no mechanism for the connector to properly manage errors from the listener so this wrapper has been installed. If the real OMRSTopicListener has been implemented properly then no errors should be handled by this wrapper class
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessInstanceEvent(OMRSInstanceEvent event)Method to pass an Instance event received on topic.voidprocessRegistryEvent(OMRSRegistryEvent event)Method to pass a Registry event received on topic.voidprocessTypeDefEvent(OMRSTypeDefEvent event)Method to pass a TypeDef event received on topic.
-
-
-
Method Detail
-
processRegistryEvent
public void processRegistryEvent(OMRSRegistryEvent event)
Method to pass a Registry event received on topic.- Specified by:
processRegistryEventin interfaceOMRSTopicListener- Parameters:
event- inbound event
-
processTypeDefEvent
public void processTypeDefEvent(OMRSTypeDefEvent event)
Method to pass a TypeDef event received on topic.- Specified by:
processTypeDefEventin interfaceOMRSTopicRepositoryEventListener- Parameters:
event- inbound event
-
processInstanceEvent
public void processInstanceEvent(OMRSInstanceEvent event)
Method to pass an Instance event received on topic.- Specified by:
processInstanceEventin interfaceOMRSTopicRepositoryEventListener- Parameters:
event- inbound event
-
-