this.snapshots = new LRUMap(snapshotsCacheSize);
// init event bridge only if we are notifying remote listeners
if (notifyingRemoteListeners) {
try {
EventBridgeFactory factory = (EventBridgeFactory) Class.forName(
eventBridgeFactory).newInstance();
Collection<EventSubject> subjects = Collections
.singleton(getSnapshotEventSubject());
String externalSubject = EventBridge
.convertToExternalSubject(getSnapshotEventSubject());
this.remoteNotificationsHandler = factory.createEventBridge(
subjects,
externalSubject,
properties);
}
catch (Exception ex) {