public abstract class WorkspaceObservingManager extends Object
Constructor and Description |
---|
WorkspaceObservingManager(String workspace,
String observedPath,
boolean includeSubNodes,
String nodeType) |
WorkspaceObservingManager(String workspace,
String observedPath,
boolean includeSubNodes,
String[] nodeTypes) |
WorkspaceObservingManager(String workspace,
String observedPath,
boolean includeSubNodes,
String[] nodeTypes,
int eventTypesMask) |
Modifier and Type | Method and Description |
---|---|
long |
getDelay() |
protected int |
getEventTypesMask() |
long |
getMaxDelay() |
protected String[] |
getNodeTypes() |
protected String |
getObservedPath() |
protected Object |
getReloadMonitor()
Returns the object used to synchronize on to keep multiple reload operations to occur at the same time.
|
protected String |
getWorkspace() |
protected javax.jcr.observation.EventListener |
instantiateEventListener() |
protected boolean |
isIncludeSubNodes() |
protected void |
onStart() |
protected void |
registerChangeListener(javax.jcr.observation.EventListener eventListener) |
protected abstract void |
reload() |
void |
setDelay(long delay)
Sets the delay of the deferred
EventListener . |
void |
setMaxDelay(long maxDelay)
Sets the maximum delay of the deferred
EventListener . |
void |
start() |
public WorkspaceObservingManager(String workspace, String observedPath, boolean includeSubNodes, String[] nodeTypes, int eventTypesMask)
public WorkspaceObservingManager(String workspace, String observedPath, boolean includeSubNodes, String[] nodeTypes)
public void start()
protected void onStart()
protected void registerChangeListener(javax.jcr.observation.EventListener eventListener)
protected javax.jcr.observation.EventListener instantiateEventListener()
protected abstract void reload() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String getWorkspace()
protected boolean isIncludeSubNodes()
protected String[] getNodeTypes()
protected String getObservedPath()
protected int getEventTypesMask()
protected Object getReloadMonitor()
public long getDelay()
public void setDelay(long delay)
EventListener
.
Make sure to call this method before calling start()
.public long getMaxDelay()
public void setMaxDelay(long maxDelay)
EventListener
.
Make sure to call this method before calling start()
.Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.