public abstract class ERXRemoteNotificationCenter
extends com.webobjects.foundation.NSNotificationCenter
NSNotificationCenter.defaultCenter()
.
If you don't link ERJGroupsSynchronizer, it will create a simple implementation, which posts via multicast - and is thus not really reliable and can't handle larger useInfo dict (of which keys and values must be strings). Also, you need to explicitely send the notification locally if you want to receive it in the sending application.
Name | Description |
---|---|
er.extensions.ERXRemoteNotificationCenter.localBindAddress | the local address to bind to |
er.extensions.ERXRemoteNotificationCenter.group | the multicast address to send to (230.0.0.1) |
er.extensions.ERXRemoteNotificationCenter.port | the multicast port to send to (9754) |
er.extensions.ERXRemoteNotificationCenter.maxPacketSize | the maximum multicast packet size (1024) |
er.extensions.ERXRemoteNotificationCenter.identifier | the unique identifier for this host (autogenerated by default) |
Constructor and Description |
---|
ERXRemoteNotificationCenter() |
Modifier and Type | Method and Description |
---|---|
static ERXRemoteNotificationCenter |
defaultCenter() |
void |
postLocalNotification(com.webobjects.foundation.NSNotification notification)
Post a notification to the local app only.
|
void |
postNotification(com.webobjects.foundation.NSNotification notification)
Overridden to call
postRemoteNotification(NSNotification) . |
protected abstract void |
postRemoteNotification(com.webobjects.foundation.NSNotification notification)
Post a notification to the remote listeners.
|
static void |
setDefaultCenter(ERXRemoteNotificationCenter center)
Set the default center
|
public static ERXRemoteNotificationCenter defaultCenter()
public static void setDefaultCenter(ERXRemoteNotificationCenter center)
center
- the notification center to use as defaultpublic void postLocalNotification(com.webobjects.foundation.NSNotification notification)
notification
- the notificationprotected abstract void postRemoteNotification(com.webobjects.foundation.NSNotification notification)
notification
- the notificationpublic void postNotification(com.webobjects.foundation.NSNotification notification)
postRemoteNotification(NSNotification)
.postNotification
in class com.webobjects.foundation.NSNotificationCenter
Copyright © 2002 – 2020 Project Wonder.