| Constructor and Description |
|---|
VanillaReference(RequestContext context,
Asset asset,
MapView<String,E,E> underlying) |
VanillaReference(String name,
Class<E> type,
MapView<String,E,E> mapView) |
| Modifier and Type | Method and Description |
|---|---|
E |
get() |
Class |
getType() |
void |
registerSubscriber(boolean bootstrap,
Subscriber<E> subscriber)
Add a subscription to this spepcific topic
|
void |
remove()
Remove the topic/key
|
void |
set(E event)
Set the new value
|
int |
subscriberCount() |
void |
unregisterSubscriber(Subscriber<E> subscriber)
Remove a subscriber
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAndRemove, getAndSet, publishapplyTo, applyTo, asyncUpdate, asyncUpdate, syncUpdate, syncUpdatepublic VanillaReference(@NotNull
RequestContext context,
Asset asset,
MapView<String,E,E> underlying)
throws AssetNotFoundException
AssetNotFoundException@Nullable public E get()
public void remove()
Referencepublic void registerSubscriber(boolean bootstrap,
Subscriber<E> subscriber)
throws AssetNotFoundException
PublisherregisterSubscriber in interface Publisher<E>bootstrap - to bootstrapsubscriber - to registerAssetNotFoundException - if the topic no longer exists.public void unregisterSubscriber(Subscriber<E> subscriber)
PublisherunregisterSubscriber in interface Publisher<E>subscriber - to removepublic int subscriberCount()
subscriberCount in interface Publisher<E>Copyright © 2015. All rights reserved.