See CustomTopicData
.
@Deprecated public abstract class SimpleCustomTopicDataHandler extends AbstractCustomTopicDataHandler
Provide a simple custom topic data handler that doesn't need transactionality. Please note that this implementation will always return true for hasChanges and endUpdate
Constructor and Description |
---|
SimpleCustomTopicDataHandler()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
abortUpdate()
Deprecated.
This is called when
PublishingTopicData.abortUpdate() is called. |
boolean |
endUpdate()
Deprecated.
This is called when
PublishingTopicData.endUpdate() is called. |
boolean |
hasChanges()
Deprecated.
This is called to determine whether there have been any changes to the
state of the data during the current update block.
|
void |
startUpdate()
Deprecated.
This is called when
PublishingTopicData.startUpdate() is called. |
initialise, prepare, setTopicData, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asString, populateDelta, populateTopicLoad
public void startUpdate() throws APIException
CustomTopicDataHandler
PublishingTopicData.startUpdate()
is called.
The data will have been locked before this is called.
Typically the handler would at this point prepare for one or more updates by taking a copy of the current state.
APIException
- to notify a failurepublic boolean hasChanges()
CustomTopicDataHandler
If not within an update this should return false.
If there have been one or more updates during the current update block that have resulted in a change to the original state then this should return true.
public void abortUpdate() throws APIException
CustomTopicDataHandler
PublishingTopicData.abortUpdate()
is called.
It allows the handler to discard any updating done within an update block.
APIException
- to notify a failurepublic boolean endUpdate() throws APIException
CustomTopicDataHandler
PublishingTopicData.endUpdate()
is called.
If there have been updates (CustomTopicDataHandler.hasChanges()
returns true) then this
should replace the current state of the data with the updated state.
CustomTopicDataHandler.hasChanges()
==true)APIException
- to notify a failureCopyright © 2016 Push Technology Ltd. All Rights Reserved.