com.kolibrifx.plovercrest.server.internal.EventDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plovercrest-server Show documentation
Show all versions of plovercrest-server Show documentation
Plovercrest server library.
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();
}