M - the type which is notified by this observablepublic class MessageObservable<M extends com.google.protobuf.Message>
extends org.openbase.jul.pattern.AbstractObservable<M>
Shutdownable.ShutdownDeamon| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_ALLOCATION_FIELD |
static String |
TIMESTAMP_MESSAGE_NAME |
| Constructor and Description |
|---|
MessageObservable(org.openbase.jul.pattern.provider.DataProvider<M> source) |
| Modifier and Type | Method and Description |
|---|---|
M |
getValue() |
Future<M> |
getValueFuture() |
boolean |
isValueAvailable() |
com.google.protobuf.Message.Builder |
removeTimestamps(com.google.protobuf.Message.Builder builder) |
void |
waitForValue(long timeout,
TimeUnit timeUnit) |
addObserver, applyValueUpdate, isNotificationInProgess, notifyObservers, notifyObservers, removeObserver, setExecutorService, setHashGenerator, shutdown, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitregisterShutdownHook, registerShutdownHookpublic static final String TIMESTAMP_MESSAGE_NAME
public static final String RESOURCE_ALLOCATION_FIELD
public MessageObservable(org.openbase.jul.pattern.provider.DataProvider<M> source)
public void waitForValue(long timeout,
TimeUnit timeUnit)
throws CouldNotPerformException,
InterruptedException
public M getValue() throws NotAvailableException
NotAvailableExceptionpublic boolean isValueAvailable()
public com.google.protobuf.Message.Builder removeTimestamps(com.google.protobuf.Message.Builder builder)
Copyright © 2015–2017 openbase.org. All rights reserved.