com.kolibrifx.plovercrest.server.streams.StreamObserver 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.streams;
@FunctionalInterface
public interface StreamObserver {
void onObserve(long timestamp, long index, T element);
default void onObserveEnd(final long lastValidTimestamp, final long elementCount) {
}
default void onObserveFrozen() {
}
}