public interface Reference<E> extends Publisher<E>, java.util.function.Supplier<E>, Visitable<E>
| Modifier and Type | Method and Description |
|---|---|
E |
get() |
default E |
getAndRemove()
Remove the topic/key and return the old value
|
default E |
getAndSet(E e)
Set a new value and return the old value.
|
default Class |
getType() |
default void |
publish(E e)
Publish to this topic/key.
|
void |
remove()
Remove the topic/key
|
void |
set(E e)
Set the new value
|
registerSubscriber, subscriberCount, unregisterSubscriberapplyTo, applyTo, asyncUpdate, asyncUpdate, syncUpdate, syncUpdateE get()
get in interface java.util.function.Supplier<E>get in interface Visitable<E>default E getAndSet(E e)
e - to setvoid set(E e)
void remove()
default E getAndRemove()
default void publish(E e)
default Class getType()
Copyright © 2015. All rights reserved.