K - the type of key for reaching an item from this registry.T - the type of item to register.public interface Registry<K,T>
| Modifier and Type | Method and Description | 
|---|---|
| Map<K,T> | getAll()Returns map of all registered items in this registry. | 
| T | getOrCreate(K id)Returns item if it exists in this registry or creates it. | 
| T | getOrNull(K id)Returns item if it exists in this registry otherwise returns null. | 
| T | remove(K id)Removes the registration from this registry. | 
T getOrCreate(K id)
id - key for reaching the item from this registry.T getOrNull(K id)
id - key for reaching the item from this registry.Map<K,T> getAll()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.