本文整理汇总了Java中com.hazelcast.core.MapEvent类的典型用法代码示例。如果您正苦于以下问题:Java MapEvent类的具体用法?Java MapEvent怎么用?Java MapEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MapEvent类属于com.hazelcast.core包,在下文中一共展示了MapEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mapCleared
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(MapEvent mapEvent) {
if (mapEvent == null) {
throw new RuntimeException("Received a null message. Something is wrong");
}
for (DestinationDiscoveryCallback callback : callBacks) {
callback.destinationMapCleared(mapEvent);
}
}
示例2: mapEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent mapEvent) {
if (mapEvent == null) {
throw new RuntimeException("Received a null message. Something is wrong");
}
for (DestinationDiscoveryCallback callback : callBacks) {
callback.destinationMapEvicted(mapEvent);
}
}
示例3: mapCleared
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(final MapEvent event) {
m_logger.debug("Member: {} {} - cleared entries: {}",
event.getMember().getSocketAddress(),
event.getMember().getUuid(),
event.getNumberOfEntriesAffected());
}
示例4: mapEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(final MapEvent event) {
m_logger.debug("Member: {} {} - evicted entries: {}",
event.getMember().getSocketAddress(),
event.getMember().getUuid(),
event.getNumberOfEntriesAffected());
}
示例5: mapCleared
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(MapEvent event) {
if (localMember.equals(event.getMember())) {
// ignore locally triggered event
return;
}
cache.invalidateAll();
}
示例6: handleMapEvent
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
private void handleMapEvent(MapEvent event) {
NodeID nodeID = NodeID.getInstance(StringUtils.getBytes(event.getMember().getUuid()));
// ignore events which were triggered by this node
if (!XMPPServer.getInstance().getNodeID().equals(nodeID)) {
Set<String> sessionJIDs = clusterListener.lookupJIDList(nodeID, cacheName);
sessionJIDs.clear();
}
}
示例7: mapClearedOrEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
private void mapClearedOrEvicted(MapEvent event) {
NodeID nodeID = NodeID.getInstance(StringUtils.getBytes(event.getMember().getUuid()));
// ignore events which were triggered by this node
if (!XMPPServer.getInstance().getNodeID().equals(nodeID)) {
nodePresences.get(nodeID).clear();
}
}
示例8: handleMapEvent
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
private void handleMapEvent(MapEvent event) {
NodeID nodeID = NodeID.getInstance(StringUtils.getBytes(event.getMember().getUuid()));
// ignore events which were triggered by this node
if (!XMPPServer.getInstance().getNodeID().equals(nodeID)) {
Set<DomainPair> sessionJIDS = nodeRoutes.get(nodeID);
if (sessionJIDS != null) {
sessionJIDS.clear();
}
}
}
示例9: mapCleared
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(MapEvent event) {
// noop
}
示例10: mapEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent event) {
// noop
}
示例11: mapEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
public void mapEvicted(MapEvent mapEvent) {
// noop
}
示例12: mapCleared
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
public void mapCleared(MapEvent mapEvent) {
// noop
}
示例13: mapEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent me) {
}
示例14: mapCleared
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(MapEvent me) {
}
示例15: mapEvicted
import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent event) {
listener.mapEvicted(event);
}