public class CacheDestroyEventContext extends Object implements DestroyEventContext<javax.cache.Cache>, IdentifiedDataSerializable
| Constructor and Description |
|---|
CacheDestroyEventContext() |
CacheDestroyEventContext(String cacheName) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(javax.cache.Cache context)
Called to decouple Hazelcast object from the tenant
|
Class<? extends javax.cache.Cache> |
getContextType() |
String |
getDistributedObjectName() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
String |
getServiceName() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public CacheDestroyEventContext()
public CacheDestroyEventContext(String cacheName)
public void destroy(javax.cache.Cache context)
DestroyEventContextdestroy in interface DestroyEventContext<javax.cache.Cache>context - to use to destroy the Hazelcast objectpublic Class<? extends javax.cache.Cache> getContextType()
getContextType in interface DestroyEventContext<javax.cache.Cache>public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public String getDistributedObjectName()
getDistributedObjectName in interface DestroyEventContext<javax.cache.Cache>public String getServiceName()
getServiceName in interface DestroyEventContext<javax.cache.Cache>Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.