Package io.ebeaninternal.server.cache
Class RemoteCacheEvent
- java.lang.Object
-
- io.ebeaninternal.server.cache.RemoteCacheEvent
-
- All Implemented Interfaces:
BinaryWritable
public class RemoteCacheEvent extends Object implements BinaryWritable
Cache events broadcast across the cluster.
-
-
Field Summary
-
Fields inherited from interface io.ebeaninternal.api.BinaryWritable
TYPE_BEANIUD, TYPE_CACHE, TYPE_TABLEIUD, TYPE_TABLEMOD
-
-
Constructor Summary
Constructors Constructor Description RemoteCacheEvent(boolean clearAll)
Clear all the caches.RemoteCacheEvent(boolean clearAll, List<String> beanTypes)
Create with the read options.RemoteCacheEvent(Class<?> beanType)
Clear caches for the given bean type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getClearCaches()
boolean
isClearAll()
static RemoteCacheEvent
readBinaryMessage(BinaryReadContext dataInput)
String
toString()
void
writeBinary(BinaryWriteContext out)
Write message in binary format.
-
-
-
Constructor Detail
-
RemoteCacheEvent
public RemoteCacheEvent(boolean clearAll)
Clear all the caches.
-
RemoteCacheEvent
public RemoteCacheEvent(Class<?> beanType)
Clear caches for the given bean type.
-
RemoteCacheEvent
public RemoteCacheEvent(boolean clearAll, List<String> beanTypes)
Create with the read options.
-
-
Method Detail
-
isClearAll
public boolean isClearAll()
-
getClearCaches
public List<String> getClearCaches()
-
readBinaryMessage
public static RemoteCacheEvent readBinaryMessage(BinaryReadContext dataInput) throws IOException
- 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
-
-