public class VanillaSubAsset<E> extends Object implements SubAsset<E>, net.openhft.chronicle.core.io.Closeable, TopicSubscriber<String,E>
| Modifier and Type | Method and Description |
|---|---|
Asset |
acquireAsset(RequestContext context,
String fullName) |
<V> V |
acquireView(Class<V> viewType,
RequestContext rc) |
<L> void |
addLeafRule(Class<L> iClass,
String description,
LeafViewFactory<L> factory) |
<V> V |
addView(Class<V> viewType,
V v) |
<W,U> void |
addWrappingRule(Class<W> iClass,
String description,
java.util.function.BiPredicate<RequestContext,Asset> predicate,
WrappingViewFactory<W,U> factory,
Class<U> underlyingType) |
<W,U> void |
addWrappingRule(Class<W> iClass,
String description,
WrappingViewFactory<W,U> factory,
Class<U> underlyingType) |
void |
close() |
<I> I |
createLeafView(Class viewType,
RequestContext rc,
Asset asset) |
<I,U> I |
createWrappingView(Class viewType,
RequestContext rc,
Asset asset,
U underling) |
void |
forEachChild(net.openhft.chronicle.core.util.ThrowingAcceptor<Asset,InvalidSubscriberException> child) |
Asset |
getChild(String name) |
<V> V |
getView(Class<V> vClass) |
boolean |
hasChildren() |
<V> boolean |
hasFactoryFor(Class<V> viewType) |
boolean |
isReadOnly() |
boolean |
isSubAsset() |
boolean |
keyedView() |
String |
name() |
void |
onMessage(String name,
E e) |
Asset |
parent() |
<I> void |
registerView(Class<I> iClass,
I interceptor) |
void |
removeChild(String name) |
Subscription |
subscription(boolean createIfAbsent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireView, findAsset, findOrCreateView, findView, fullName, getAsset, rootonEndOfSubscription@NotNull public Subscription subscription(boolean createIfAbsent)
subscription in interface Assetpublic boolean isReadOnly()
isReadOnly in interface Asset@NotNull
public <V> V acquireView(@NotNull
Class<V> viewType,
@NotNull
RequestContext rc)
throws AssetNotFoundException
acquireView in interface AssetAssetNotFoundExceptionpublic boolean isSubAsset()
isSubAsset in interface Assetpublic boolean hasChildren()
hasChildren in interface Assetpublic <I> void registerView(Class<I> iClass, I interceptor)
registerView in interface Assetpublic <W,U> void addWrappingRule(Class<W> iClass, String description, java.util.function.BiPredicate<RequestContext,Asset> predicate, WrappingViewFactory<W,U> factory, Class<U> underlyingType)
addWrappingRule in interface Assetpublic <W,U> void addWrappingRule(Class<W> iClass, String description, WrappingViewFactory<W,U> factory, Class<U> underlyingType)
addWrappingRule in interface Assetpublic <L> void addLeafRule(Class<L> iClass, String description, LeafViewFactory<L> factory)
addLeafRule in interface Asset@NotNull public <I,U> I createWrappingView(Class viewType, RequestContext rc, Asset asset, U underling) throws AssetNotFoundException
createWrappingView in interface AssetAssetNotFoundException@NotNull public <I> I createLeafView(Class viewType, RequestContext rc, Asset asset) throws AssetNotFoundException
createLeafView in interface AssetAssetNotFoundExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseable@NotNull public Asset acquireAsset(RequestContext context, String fullName) throws AssetNotFoundException
acquireAsset in interface AssetAssetNotFoundExceptionpublic <V> boolean hasFactoryFor(Class<V> viewType)
hasFactoryFor in interface Assetpublic void removeChild(String name)
removeChild in interface Assetpublic void onMessage(@NotNull
String name,
E e)
onMessage in interface TopicSubscriber<String,E>public void forEachChild(net.openhft.chronicle.core.util.ThrowingAcceptor<Asset,InvalidSubscriberException> child) throws InvalidSubscriberException
forEachChild in interface AssetInvalidSubscriberExceptionCopyright © 2015. All rights reserved.