Class RemoteTransactionEvent
- java.lang.Object
-
- io.ebeaninternal.server.transaction.RemoteTransactionEvent
-
- All Implemented Interfaces:
BinaryWritable
,Runnable
public class RemoteTransactionEvent extends Object implements Runnable, BinaryWritable
-
-
Field Summary
-
Fields inherited from interface io.ebeaninternal.api.BinaryWritable
TYPE_BEANIUD, TYPE_CACHE, TYPE_TABLEIUD, TYPE_TABLEMOD
-
-
Constructor Summary
Constructors Constructor Description RemoteTransactionEvent(SpiEbeanServer server)
Create from Reading and processing from remote server.RemoteTransactionEvent(String serverName)
Create for sending to other servers in the cluster.
-
Method Summary
-
-
-
Constructor Detail
-
RemoteTransactionEvent
public RemoteTransactionEvent(String serverName)
Create for sending to other servers in the cluster.
-
RemoteTransactionEvent
public RemoteTransactionEvent(SpiEbeanServer server)
Create from Reading and processing from remote server.
-
-
Method Detail
-
readBinary
public void readBinary(BinaryReadContext dataInput) throws IOException
Read the binary message.- Throws:
IOException
-
writeBinaryAsBytes
public byte[] writeBinaryAsBytes(int bufferSize) throws IOException
Write a binary message to byte array given an initial buffer size.- Throws:
IOException
-
writeBinary
public void writeBinary(BinaryWriteContext out) throws IOException
Description copied from interface:BinaryWritable
Write message in binary format.- Specified by:
writeBinary
in interfaceBinaryWritable
- Throws:
IOException
-
isEmpty
public boolean isEmpty()
-
addBeanPersistIds
public void addBeanPersistIds(BeanPersistIds beanPersist)
-
cacheClearAll
public RemoteTransactionEvent cacheClearAll()
Add a cache clearAll event.
-
cacheClear
public RemoteTransactionEvent cacheClear(Class<?> beanType)
Add a cache clear event for the given bean type.
-
addRemoteCacheEvent
public void addRemoteCacheEvent(RemoteCacheEvent remoteCacheEvent)
Set the RemoteCacheEvent.
-
addTableIUD
public void addTableIUD(TransactionEventTable.TableIUD tableIud)
-
addRemoteTableMod
public void addRemoteTableMod(RemoteTableMod remoteTableMod)
-
getServerName
public String getServerName()
-
getServer
public SpiEbeanServer getServer()
-
setServer
public void setServer(SpiEbeanServer server)
-
getTableIUDList
public List<TransactionEventTable.TableIUD> getTableIUDList()
-
getBeanPersistList
public List<BeanPersistIds> getBeanPersistList()
-
getRemoteCacheEvent
public RemoteCacheEvent getRemoteCacheEvent()
-
getRemoteTableMod
public RemoteTableMod getRemoteTableMod()
-
-