public class DefaultAfterSaveListenerRegistry extends Object implements AfterSaveListenerRegistry
AfterSaveListenerRegistry| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_AFTERSAVE_ASYNC |
static String |
CORE_AFTERSAVE_BATCHSIZE |
static String |
CORE_AFTERSAVE_INTERVAL |
static String |
CORE_AFTERSAVE_QUEUESIZE |
| Constructor and Description |
|---|
DefaultAfterSaveListenerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AfterSaveListener afterSaveListener) |
void |
afterPropertiesSet() |
void |
destroy() |
protected void |
doNotifyListeners(Collection<AfterSaveEvent> events,
Collection<AfterSaveListener> listeners)
Notifies all registered listeners with the AfterSaveEvents.
|
protected void |
enqueueChangesForAsyncNotification(byte[][] changes) |
protected int |
getBatchSizeParam() |
protected int |
getQueueSizeParam() |
protected long |
getSleepTimeParam() |
protected void |
initPublicherThread()
Deprecated.
|
protected void |
initPublisherThread() |
protected boolean |
isAsyncParam() |
protected boolean |
isPublishAsynchronously() |
protected void |
notifyListenersSynchronously(Collection<AfterSaveEvent> events) |
void |
publishChanges(byte[][] encodedChanges)
Publishes a set of encoded changes.
|
void |
removeListener(AfterSaveListener afterSaveListener) |
void |
setListeners(List<AfterSaveListener> listeners) |
public static final String CORE_AFTERSAVE_INTERVAL
public static final String CORE_AFTERSAVE_BATCHSIZE
public static final String CORE_AFTERSAVE_QUEUESIZE
public static final String CORE_AFTERSAVE_ASYNC
public void setListeners(List<AfterSaveListener> listeners)
public void publishChanges(byte[][] encodedChanges)
AfterSaveListenerRegistrypublishChanges in interface AfterSaveListenerRegistryencodedChanges - an array which consists of byte arrays with a fixed length of 9AfterSaveEventUtils.encodeChanges(de.hybris.platform.core.PK, int)protected void enqueueChangesForAsyncNotification(byte[][] changes)
protected void notifyListenersSynchronously(Collection<AfterSaveEvent> events)
public void addListener(AfterSaveListener afterSaveListener)
public void removeListener(AfterSaveListener afterSaveListener)
protected void initPublisherThread()
@Deprecated protected void initPublicherThread()
protected int getBatchSizeParam()
protected long getSleepTimeParam()
protected int getQueueSizeParam()
protected boolean isAsyncParam()
protected void doNotifyListeners(Collection<AfterSaveEvent> events, Collection<AfterSaveListener> listeners)
protected boolean isPublishAsynchronously()
Copyright © 2017 SAP SE. All Rights Reserved.