Class ReadOnlyBeanMessageCallBack
- java.lang.Object
-
- org.glassfish.persistence.ejb.entitybean.container.distributed.ReadOnlyBeanMessageCallBack
-
- All Implemented Interfaces:
MessageReceiver
,DistributedReadOnlyBeanNotifier
@Service public class ReadOnlyBeanMessageCallBack extends Object implements MessageReceiver, DistributedReadOnlyBeanNotifier
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyBeanMessageCallBack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyRefresh(long ejbID, byte[] pk)
This is called by the container after it has called refreshvoid
notifyRefreshAll(long ejbID)
This is called by the container after it has called refreshvoid
postConstruct()
void
receiveMessage(ClusterMessage cm)
Method to call when aClusterMessage
is received
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
-
receiveMessage
public void receiveMessage(ClusterMessage cm)
Description copied from interface:MessageReceiver
Method to call when aClusterMessage
is received- Specified by:
receiveMessage
in interfaceMessageReceiver
-
notifyRefresh
public void notifyRefresh(long ejbID, byte[] pk)
This is called by the container after it has called refresh- Specified by:
notifyRefresh
in interfaceDistributedReadOnlyBeanNotifier
- Parameters:
ejbID
- the ejbID that uniquely identifies the containerpk
- The primary key of the bean(s) that is to be refreshed
-
notifyRefreshAll
public void notifyRefreshAll(long ejbID)
This is called by the container after it has called refresh- Specified by:
notifyRefreshAll
in interfaceDistributedReadOnlyBeanNotifier
- Parameters:
ejbID
- the ejbID that uniquely identifies the containerpk
- The primary key of the bean(s) that is to be refreshed
-
-