com.tangosol.net.events.partition.cache.PartitionedCacheDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net.events.partition.cache;
import com.tangosol.net.BackingMapContext;
import com.tangosol.net.CacheService;
import com.tangosol.net.NamedCache;
import com.tangosol.net.events.EventDispatcher;
/**
* A PartitionedCacheDispatcher raises the following server-side {@link
* com.tangosol.net.events.Event}s pertaining to backing-map operations:
*
* - {@link EntryEvent}s
* - {@link EntryProcessorEvent}s
*
*
* @author rhan, nsa, rhl, hr 2011.03.29
* @since Coherence 12.1.2
*/
public interface PartitionedCacheDispatcher
extends EventDispatcher
{
/**
* Return the {@link BackingMapContext} for this dispatcher.
*
* @return the BackingMapContext for this dispatcher
*/
public BackingMapContext getBackingMapContext();
/**
* Return the name of the {@link NamedCache cache} that this
* PartitionedCacheDispatcher is associated with.
*
* @return the cache name
*/
public default String getCacheName()
{
return getBackingMapContext().getCacheName();
}
/**
* Return the name of the {@link CacheService service} that this
* PartitionedCacheDispatcher is associated with.
*
* @return the service name
*/
public default String getServiceName()
{
return getBackingMapContext().getManagerContext().getCacheService().getInfo().getServiceName();
}
}