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)
DestroyEventContext
destroy
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()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- 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.