public interface DistributedReadOnlyBeanService
ReadOnlyBeanRefreshEventHandler| Modifier and Type | Method and Description |
|---|---|
void |
addReadOnlyBeanRefreshEventHandler(long ejbID,
ClassLoader loader,
ReadOnlyBeanRefreshEventHandler handler)
Called from ReadOnlyBeanContainer to register itself as a
ReadOnlyBeanRefreshEventHandler.
|
void |
handleRefreshAllRequest(long ejbID)
Called from the DistributedReadOnlyBeanNotifier when it receives a (remote)
request to refresh all RO beans
|
void |
handleRefreshRequest(long ejbID,
byte[] pkData)
Called from the DistributedReadOnlyBeanNotifier when it receives a (remote)
request to refresh a RO bean
|
void |
notifyRefresh(long ejbID,
Object pk)
Called by the container after it has refreshed the RO bean
|
void |
notifyRefreshAll(long ejbID)
Called by the container after it has refreshed all RO beans
|
void |
removeReadOnlyBeanRefreshEventHandler(long ejbID)
Called from ReadOnlyBeanContainer to unregister itself as a
ReadOnlyBeanRefreshEventHandler.
|
void |
setDistributedReadOnlyBeanNotifier(DistributedReadOnlyBeanNotifier notifier)
This is typically done during appserver startup time.
|
void setDistributedReadOnlyBeanNotifier(DistributedReadOnlyBeanNotifier notifier)
notifier - the notifier who is responsible for notifying refresh
event(s) to other instancesvoid addReadOnlyBeanRefreshEventHandler(long ejbID,
ClassLoader loader,
ReadOnlyBeanRefreshEventHandler handler)
ejbID - the ejbID that uniquely identifies the containerloader - the class loader that will be used to serialize/de-serialize
the primary keyhandler - The handler that is responsible for
correctly refresing the state of a RO beanvoid removeReadOnlyBeanRefreshEventHandler(long ejbID)
ejbID - void notifyRefresh(long ejbID,
Object pk)
ejbID - the ejbID that uniquely identifies the containerpk - the primary key to be refreshedvoid notifyRefreshAll(long ejbID)
ejbID - the ejbID that uniquely identifies the containervoid handleRefreshRequest(long ejbID,
byte[] pkData)
ejbID - the ejbID that uniquely identifies the containerpk - the primary key to be refreshedvoid handleRefreshAllRequest(long ejbID)
ejbID - the ejbID that uniquely identifies the containerCopyright © 2017. All rights reserved.