org.softamis.net.registry
Interface ProvidingRegistry<K extends java.io.Serializable,V extends java.io.Serializable>

Type Parameters:
K - type of keys used to identify registry items
V - type of values stored in the registry
All Known Subinterfaces:
DiscoverableProvidingRegistry<K,V>
All Known Implementing Classes:
AbstractProvidingRegistry, DefaultProvidingRegistry, DefaultProvidingRegistry

public interface ProvidingRegistry<K extends java.io.Serializable,V extends java.io.Serializable>

Generic interface for ProvidingRegistry. The main purpose of provider registry is to provide ability to register (or publish) items stored in the distributed registry. Appropriate ConsumerRegistries that shares data with this registry will be notified of the items published by the ProvidingRegistry.

Author:
Andrew Sazonov
See Also:
ConsumingRegistry

Method Summary
 void notifyAllRegistrations()
          Forces registry to issue notification for all registered items.
 void registerItem(K aItemKey, V aItem)
          Registers item stored under given key
 void unregisterAllItems()
           
 void unRegisterItem(K aItemKey)
          Performs un-registration of the item under given key.
 

Method Detail

registerItem

void registerItem(K aItemKey,
                  V aItem)
Registers item stored under given key

Parameters:
aItemKey - key of the item to be registered
aItem - the item to be registered

unRegisterItem

void unRegisterItem(K aItemKey)
Performs un-registration of the item under given key. Item will be removed from the distributed registry

Parameters:
aItemKey - item to unregister

notifyAllRegistrations

void notifyAllRegistrations()
Forces registry to issue notification for all registered items. Potentially, this method can be called on some scheduled basis to provider "heart-beat" of registry (so client registries will be re-notified about content published via registry).


unregisterAllItems

void unregisterAllItems()