java.lang.Object
io.ebeaninternal.server.transaction.BeanPersistIds
- All Implemented Interfaces:
BinaryWritable
Wraps the information representing a Inserted Updated or Deleted Bean.
This information is broadcast across the cluster so that remote BeanListeners are notified of the inserts updates and deletes that occurred.
You control it the data is broadcast and what data is broadcast by the BeanListener.getClusterData() method. It is guessed that often just the Id property or perhaps a few properties in a Map will be broadcast to reduce the size of data sent around the network.
-
Field Summary
Fields inherited from interface io.ebeaninternal.api.BinaryWritable
TYPE_BEANIUD, TYPE_CACHE, TYPE_TABLEIUD, TYPE_TABLEMOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddId(PersistRequest.Type type, Object id) getIds()voidnotifyCache(CacheChangeSet changeSet) Notify the cache of this event that came from another server in the cluster.static BeanPersistIdsreadBinaryMessage(SpiEbeanServer server, BinaryReadContext input) toString()voidWrite message in binary format.
-
Constructor Details
-
BeanPersistIds
Create the payload.
-
-
Method Details
-
readBinaryMessage
public static BeanPersistIds readBinaryMessage(SpiEbeanServer server, BinaryReadContext input) throws IOException - Throws:
IOException
-
writeBinary
Description copied from interface:BinaryWritableWrite message in binary format.- Specified by:
writeBinaryin interfaceBinaryWritable- Throws:
IOException
-
toString
-
addId
-
getBeanDescriptor
-
getIds
-
notifyCache
Notify the cache of this event that came from another server in the cluster.
-