Package com.hazelcast.core

Examples of com.hazelcast.core.HazelcastInstanceAware


    }

    @Override
    public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
        if (task instanceof HazelcastInstanceAware) {
            HazelcastInstanceAware instanceAwareTask = (HazelcastInstanceAware) task;
            instanceAwareTask.setHazelcastInstance(hazelcastInstance);
        }
    }
View Full Code Here


            throw ExceptionUtil.rethrow(e);
        }

        if (listener != null) {
            if (listener instanceof HazelcastInstanceAware) {
                HazelcastInstanceAware hazelcastInstanceAware = (HazelcastInstanceAware) listener;
                hazelcastInstanceAware.setHazelcastInstance(nodeEngine.getHazelcastInstance());
            }
            addMessageListenerInternal(listener);
        }
    }
View Full Code Here

        if (listener == null) {
            return;
        }

        if (listener instanceof HazelcastInstanceAware) {
            HazelcastInstanceAware hazelcastInstanceAware = (HazelcastInstanceAware) listener;
            hazelcastInstanceAware.setHazelcastInstance(nodeEngine.getHazelcastInstance());
        }
        addMessageListenerInternal(listener);
    }
View Full Code Here

    }

    @Override
    public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
        if (task instanceof HazelcastInstanceAware) {
            HazelcastInstanceAware instanceAwareTask = (HazelcastInstanceAware) task;
            instanceAwareTask.setHazelcastInstance(hazelcastInstance);
        }
    }
View Full Code Here

    }

    @Override
    public Object initialize(Object obj) {
        if (obj instanceof HazelcastInstanceAware) {
            HazelcastInstanceAware hazelcastInstanceAware = (HazelcastInstanceAware) obj;
            hazelcastInstanceAware.setHazelcastInstance(instance);
        }
        if (obj instanceof NodeAware) {
            NodeAware nodeAware = (NodeAware) obj;
            nodeAware.setNode(instance.node);
        }
View Full Code Here

        if (listener == null) {
            return;
        }

        if (listener instanceof HazelcastInstanceAware) {
            HazelcastInstanceAware hazelcastInstanceAware = (HazelcastInstanceAware) listener;
            hazelcastInstanceAware.setHazelcastInstance(nodeEngine.getHazelcastInstance());
        }
        addMessageListenerInternal(listener);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.core.HazelcastInstanceAware

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.