T - The resource type being managed by SharedResourceCache.public interface ResourceListener<T>
SharedResourceCache
are updated.| Modifier and Type | Method and Description |
|---|---|
void |
onError(String name,
Throwable throwable)
Invoked when an error occurs in one of the resource operations.
|
void |
onResourceDelete(String name)
Invoked when a resource is removed from the shared cache.
|
void |
onResourceUpdate(String name,
T instance)
Invoked on an update to an individual resource.
|
void |
onUpdate()
Invoked when the entire set of cached resources has changed.
|
void onUpdate()
void onResourceUpdate(String name, T instance)
name - the key for the resource being updatedinstance - the resource instance which was updatedvoid onResourceDelete(String name)
name - the key for the resource that has been removedCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.