public class CallbackRegistry extends Object
| Constructor and Description |
|---|
CallbackRegistry(Page page)
Creates a callback registry for the specified page using the default eviction interval (30
minutes).
|
CallbackRegistry(Page page,
long evictionInterval)
Creates a callback registry for the specified page using the specified eviction interval.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all registered callbacks.
|
int |
registerCallback(IResponseCallback<?> callback)
Registers a callback.
|
public CallbackRegistry(Page page)
page - The owning page.public CallbackRegistry(Page page, long evictionInterval)
page - The owning page.evictionInterval - The time in milliseconds after which an entry will be evicted.public int registerCallback(IResponseCallback<?> callback)
callback - Callback to register.public void clear()
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.