Class HazelcastTopicRemoteConnection
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.coordination.RemoteConnection
-
- org.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection
-
- fish.payara.persistence.eclipselink.cache.coordination.HazelcastTopicRemoteConnection
-
- All Implemented Interfaces:
MessageReceiver<HazelcastPayload>
,Serializable
public class HazelcastTopicRemoteConnection extends org.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection implements MessageReceiver<HazelcastPayload>
HazelcastBroadcastRemoteConnection
implementing the HZMessageListener
interface.- Author:
- Sven Diedrichsen
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeInternal()
protected Object
executeCommandInternal(Object o)
Publishes the provided command viaHazelcastTopic
.void
receiveMessage(ClusterMessage<HazelcastPayload> message)
Receives any published message containing hz payload.-
Methods inherited from class org.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection
areAllResourcesFreedOnClose, close, createDisplayString, executeCommand, executeCommand, failDeserializeMessage, getInfo, getInfoExt, getState, getTopicName, isActive, isClosed, isClosing, logDebugAfterPublish, logDebugBeforePublish, logDebugOnReceiveMessage, processReceivedObject, shouldCheckServiceId, toString
-
-
-
-
Method Detail
-
executeCommandInternal
protected Object executeCommandInternal(Object o) throws Exception
Publishes the provided command viaHazelcastTopic
.- Specified by:
executeCommandInternal
in classorg.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection
- Parameters:
o
- The command to execute.- Returns:
- NULL
- Throws:
Exception
- In case of an error.
-
closeInternal
protected void closeInternal() throws Exception
- Specified by:
closeInternal
in classorg.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection
- Throws:
Exception
-
receiveMessage
public void receiveMessage(ClusterMessage<HazelcastPayload> message)
Receives any published message containing hz payload.- Specified by:
receiveMessage
in interfaceMessageReceiver<HazelcastPayload>
- Parameters:
message
- the message to process.
-
-