public class PlatformClusterEventSender extends SpringEventSender implements BinaryBroadcastListener
SpringEventSender and sends the AbstractEvents in the
sendEvent(AbstractEvent) as UDP packets in a cluster system. The packet will be de~/serialized.applicationContext| Constructor and Description |
|---|
PlatformClusterEventSender() |
| Modifier and Type | Method and Description |
|---|---|
Executor |
getExecutor()
Gets the executor used for sending local events asynchronous.
|
protected boolean |
isForOwnTenant(AbstractEvent event) |
void |
postConstruct()
Deprecated.
|
void |
preDestroy() |
void |
processPacket(byte[] message)
be aware of the fact that this is running in a different thread!
|
void |
registerBinaryListenerHook() |
void |
sendEvent(AbstractEvent event)
Sends the given
AbstractEvent depending on the environment. |
void |
setExecutor(Executor executor)
Sets the executor to use for sending local events asynchronous.
|
void |
setSerializationService(SerializationService serializationService) |
void |
setTenant(Tenant tenant) |
setApplicationContextpublic void sendEvent(AbstractEvent event)
EventSenderAbstractEvent depending on the environment.sendEvent in interface EventSendersendEvent in class SpringEventSenderevent - the event to be send.@Deprecated @PostConstruct public void postConstruct()
public void registerBinaryListenerHook()
@PreDestroy public void preDestroy()
public void processPacket(byte[] message)
processPacket in interface BinaryBroadcastListenerprotected boolean isForOwnTenant(AbstractEvent event)
public void setExecutor(Executor executor)
executor - executor to use or null for synchronous sendingpublic Executor getExecutor()
public void setSerializationService(SerializationService serializationService)
public void setTenant(Tenant tenant)
Copyright © 2017 SAP SE. All Rights Reserved.