当前位置: 首页>>代码示例>>Java>>正文


Java MapEvent类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:11,代码来源:HazelcastDestinationDiscoveryRequestListener.java

示例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);
    }
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:11,代码来源:HazelcastDestinationDiscoveryRequestListener.java

示例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());
}
 
开发者ID:clidev,项目名称:spike.x,代码行数:8,代码来源:HzEventListener.java

示例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());
}
 
开发者ID:clidev,项目名称:spike.x,代码行数:8,代码来源:HzEventListener.java

示例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();
}
 
开发者ID:ravikumaran2015,项目名称:ravikumaran201504,代码行数:9,代码来源:AbstractHazelcastStore.java

示例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();
    }
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:9,代码来源:CacheListener.java

示例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();
    }
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:8,代码来源:ClusterListener.java

示例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();
        }
    }
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:11,代码来源:ClusterListener.java

示例9: mapCleared

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(MapEvent event) {
    // noop
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:5,代码来源:CamelMapListener.java

示例10: mapEvicted

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent event) {
    // noop
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:5,代码来源:CamelMapListener.java

示例11: mapEvicted

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
public void mapEvicted(MapEvent mapEvent) {
    // noop
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:4,代码来源:CamelEntryListener.java

示例12: mapCleared

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
public void mapCleared(MapEvent mapEvent) {
    // noop
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:4,代码来源:CamelEntryListener.java

示例13: mapEvicted

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent me) {
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:4,代码来源:BpmEventListener.java

示例14: mapCleared

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapCleared(MapEvent me) {
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:4,代码来源:BpmEventListener.java

示例15: mapEvicted

import com.hazelcast.core.MapEvent; //导入依赖的package包/类
@Override
public void mapEvicted(MapEvent event) {
    listener.mapEvicted(event);
}
 
开发者ID:ravikumaran2015,项目名称:ravikumaran201504,代码行数:5,代码来源:SMap.java


注:本文中的com.hazelcast.core.MapEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。