com.kolibrifx.plovercrest.server.streams.StreamDataTriggerer 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;
/**
* Interface that can be used to trigger the polling system when new data is available on a stream.
*
* This is typically used from {@link PollableReader#poll} after triggering
* {@link StreamObserver#onObserveEnd}.
*/
public interface StreamDataTriggerer {
void wakeUpAtTime(long clockMillis);
void wakeUpNow();
}