org.gcube.common.core.informationsystem.notifier
Class ISNotifier.BaseNotificationConsumer

java.lang.Object
  extended by org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
All Implemented Interfaces:
GCUBEConsumer<ISNotifier.NotificationTopic,Object>
Enclosing interface:
ISNotifier

public static class ISNotifier.BaseNotificationConsumer
extends Object
implements GCUBEConsumer<ISNotifier.NotificationTopic,Object>

Base implementation of a GCUBEConsumer.


Field Summary
 List<QName> notifications
          List of notification to filter for this consumer
 
Constructor Summary
ISNotifier.BaseNotificationConsumer()
           
 
Method Summary
<T1 extends ISNotifier.NotificationTopic,P1>
void
onEvent(GCUBEEvent<T1,P1>... events)
          Receives RI notification events and dispatches them to topic-specific callbacks.
protected  void onNotificationReceived(ISNotifier.NotificationEvent event)
          Notification event callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notifications

public List<QName> notifications
List of notification to filter for this consumer

Constructor Detail

ISNotifier.BaseNotificationConsumer

public ISNotifier.BaseNotificationConsumer()
Method Detail

onEvent

public <T1 extends ISNotifier.NotificationTopic,P1> void onEvent(GCUBEEvent<T1,P1>... events)
Receives RI notification events and dispatches them to topic-specific callbacks.

Specified by:
onEvent in interface GCUBEConsumer<ISNotifier.NotificationTopic,Object>
Type Parameters:
T1 - the topic type.
P1 - the payload type.
Parameters:
events - the events.

onNotificationReceived

protected void onNotificationReceived(ISNotifier.NotificationEvent event)
Notification event callback.

Parameters:
event - the event.


Copyright © 2013. All Rights Reserved.