All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kolibrifx.plovercrest.server.internal.EventDispatcher Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010-2017, KolibriFX AS. Licensed under the Apache License, version 2.0.
 */

package com.kolibrifx.plovercrest.server.internal;

/**
 * Event dispatcher interface for plovercrest table events.
 */
public interface EventDispatcher {
    /**
     * Dispatch the event to run now, or later.
     * 
     * Implementations are allowed to discard duplicate events as long as the last event is processed after
     * the last dispatched duplicate.
     */
    void dispatch(TableListener listener, TableEvent event);

    /**
     * Shut down the event dispatcher. All queued events should be processed before this call returns.
     */
    void shutDown();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy