@Service public class ReadOnlyBeanMessageCallBack extends Object implements MessageReceiver, DistributedReadOnlyBeanNotifier
| Constructor and Description |
|---|
ReadOnlyBeanMessageCallBack() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyRefresh(long ejbID,
byte[] pk)
This is called by the container after it has called refresh
|
void |
notifyRefreshAll(long ejbID)
This is called by the container after it has called refresh
|
void |
postConstruct() |
void |
receiveMessage(ClusterMessage cm)
Method to call when a
ClusterMessage is received |
public void postConstruct()
public void receiveMessage(ClusterMessage cm)
MessageReceiverClusterMessage is receivedreceiveMessage in interface MessageReceiverpublic void notifyRefresh(long ejbID,
byte[] pk)
notifyRefresh in interface DistributedReadOnlyBeanNotifierejbID - the ejbID that uniquely identifies the containerpk - The primary key of the bean(s) that is to be refreshedpublic void notifyRefreshAll(long ejbID)
notifyRefreshAll in interface DistributedReadOnlyBeanNotifierejbID - the ejbID that uniquely identifies the containerpk - The primary key of the bean(s) that is to be refreshedCopyright © 2019. All rights reserved.