Search in sources :

Example 1 with EventServiceImpl

use of com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl in project hazelcast by hazelcast.

the class PostJoinRegistrationOperation method run.

@Override
public void run() throws Exception {
    if (registrations == null || registrations.size() <= 0) {
        return;
    }
    NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();
    EventServiceImpl eventService = (EventServiceImpl) nodeEngine.getEventService();
    for (Registration reg : registrations) {
        eventService.handleRegistration(reg);
    }
}
Also used : NodeEngineImpl(com.hazelcast.spi.impl.NodeEngineImpl) Registration(com.hazelcast.spi.impl.eventservice.impl.Registration) EventServiceImpl(com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl)

Example 2 with EventServiceImpl

use of com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl in project hazelcast by hazelcast.

the class RegistrationOperation method run.

@Override
public void run() throws Exception {
    EventServiceImpl eventService = (EventServiceImpl) getNodeEngine().getEventService();
    response = eventService.handleRegistration(registration);
}
Also used : EventServiceImpl(com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl)

Example 3 with EventServiceImpl

use of com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl in project hazelcast by hazelcast.

the class DeregistrationOperation method run.

@Override
public void run() throws Exception {
    EventServiceImpl eventService = (EventServiceImpl) getNodeEngine().getEventService();
    EventServiceSegment segment = eventService.getSegment(getServiceName(), false);
    if (segment != null) {
        segment.removeRegistration(topic, id);
    }
}
Also used : EventServiceImpl(com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl) EventServiceSegment(com.hazelcast.spi.impl.eventservice.impl.EventServiceSegment)

Example 4 with EventServiceImpl

use of com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl in project hazelcast by hazelcast.

the class SendEventOperation method run.

@Override
public void run() throws Exception {
    EventServiceImpl eventService = (EventServiceImpl) getNodeEngine().getEventService();
    eventService.executeEventCallback(new EventProcessor(eventService, eventEnvelope, orderKey));
}
Also used : EventServiceImpl(com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl) EventProcessor(com.hazelcast.spi.impl.eventservice.impl.EventProcessor)

Aggregations

EventServiceImpl (com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl)4 NodeEngineImpl (com.hazelcast.spi.impl.NodeEngineImpl)1 EventProcessor (com.hazelcast.spi.impl.eventservice.impl.EventProcessor)1 EventServiceSegment (com.hazelcast.spi.impl.eventservice.impl.EventServiceSegment)1 Registration (com.hazelcast.spi.impl.eventservice.impl.Registration)1