org.gcube.common.core.informationsystem.publisher
Class ISLocalPublisher.LocalProfileConsumer

java.lang.Object
  extended by org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileConsumer
All Implemented Interfaces:
GCUBEConsumer<ISLocalPublisher.LocalProfileTopic,Object>
Enclosing interface:
ISLocalPublisher

public static class ISLocalPublisher.LocalProfileConsumer
extends Object
implements GCUBEConsumer<ISLocalPublisher.LocalProfileTopic,Object>

Base implementation of a GCUBEConsumer of ISLocalPublisher.LocalProfileEvent.


Constructor Summary
ISLocalPublisher.LocalProfileConsumer()
           
 
Method Summary
<T extends ISLocalPublisher.LocalProfileTopic,P>
void
onEvent(GCUBEEvent<T,P>... events)
          Notifies the consumer of one of more events about topics for which the consumer has previously subscribed with a GCUBEProducer
protected  void onProfileRegistered(GCUBEResource resource, GCUBEScope scope)
          registered profile event callback.
protected  void onProfileRemoved(String resourceID, String type, GCUBEScope scope)
          removed profile event callback.
protected  void onProfileUpdated(GCUBEResource resource, GCUBEScope scope)
          updated profile event callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISLocalPublisher.LocalProfileConsumer

public ISLocalPublisher.LocalProfileConsumer()
Method Detail

onEvent

public <T extends ISLocalPublisher.LocalProfileTopic,P> void onEvent(GCUBEEvent<T,P>... events)
Description copied from interface: GCUBEConsumer
Notifies the consumer of one of more events about topics for which the consumer has previously subscribed with a GCUBEProducer

Specified by:
onEvent in interface GCUBEConsumer<ISLocalPublisher.LocalProfileTopic,Object>
Type Parameters:
T - the topic type.
P - the payload type.
Parameters:
events - the events.

onProfileRemoved

protected void onProfileRemoved(String resourceID,
                                String type,
                                GCUBEScope scope)
removed profile event callback.

Parameters:
resourceID - the identifier of the removed GCUBEResource
type - the type of the GCUBEResource
scope - the publishing scope

onProfileUpdated

protected void onProfileUpdated(GCUBEResource resource,
                                GCUBEScope scope)
updated profile event callback.

Parameters:
resource - the updated GCUBEResource
scope - the publishing scope

onProfileRegistered

protected void onProfileRegistered(GCUBEResource resource,
                                   GCUBEScope scope)
registered profile event callback.

Parameters:
resource - the registered GCUBEResource
scope - the publishing scope


Copyright © 2012. All Rights Reserved.