public class MediatorCacheInvalidator extends Object implements MediatorCacheInvalidatorMBean
Constructor and Description |
---|
MediatorCacheInvalidator(CacheManager cacheManager,
String tenantDomain,
int tenantId,
org.apache.synapse.MessageContext msgCtx)
MediatorCacheInvalidator Constructor which creates MBean to expose operations to invalidate the mediator cache.
|
Modifier and Type | Method and Description |
---|---|
org.apache.synapse.MessageContext |
getMsgCtx()
This method gives the tenant message context.
|
String |
getTenantDomain()
This method gives the tenant domain.
|
int |
getTenantId()
This method gives the tenant ID.
|
void |
invalidateTheWholeCache()
This abstract method should be implemented to invalidate the whole mediator Cache.
|
void |
setMsgCtx(org.apache.synapse.MessageContext msgCtx)
This method sets the message context.
|
void |
setTenantDomain(String tenantDomain)
This method sets the tenant domain.
|
void |
setTenantId(int tenantId)
This method sets the tenant ID
|
public MediatorCacheInvalidator(CacheManager cacheManager, String tenantDomain, int tenantId, org.apache.synapse.MessageContext msgCtx)
tenantDomain
- which the mediator cache should be invalidated.tenantId
- which the mediator cache should be invalidated.msgCtx
- which holds the mediator cache.public void invalidateTheWholeCache()
MediatorCacheInvalidatorMBean
invalidateTheWholeCache
in interface MediatorCacheInvalidatorMBean
public String getTenantDomain()
public void setTenantDomain(String tenantDomain)
tenantDomain
- string value to be set.public int getTenantId()
public void setTenantId(int tenantId)
tenantId
- integer value to be set.public org.apache.synapse.MessageContext getMsgCtx()
public void setMsgCtx(org.apache.synapse.MessageContext msgCtx)
msgCtx
- message context to be set.Copyright © 2020 WSO2. All rights reserved.