T
- The registration data class of the componentpublic static class ClaraQueries.RegistrationData<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.jlab.clara.base.core.ClaraBase |
base |
protected org.jlab.clara.base.ClaraFilter |
filter |
protected org.jlab.clara.base.core.ClaraComponent |
frontEnd |
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<T> |
collect(java.util.stream.Stream<org.jlab.coda.xmsg.data.xMsgRegRecord> regData,
long timeout) |
protected java.util.stream.Stream<T> |
query(java.util.stream.Stream<org.jlab.coda.xmsg.data.xMsgRegRecord> regData,
long timeout) |
protected D |
self() |
T |
syncRun(long wait,
java.util.concurrent.TimeUnit unit)
Sends the query and waits for a response.
|
protected final org.jlab.clara.base.core.ClaraBase base
protected final org.jlab.clara.base.core.ClaraComponent frontEnd
protected final org.jlab.clara.base.ClaraFilter filter
protected java.util.Optional<T> collect(java.util.stream.Stream<org.jlab.coda.xmsg.data.xMsgRegRecord> regData, long timeout)
protected java.util.stream.Stream<T> query(java.util.stream.Stream<org.jlab.coda.xmsg.data.xMsgRegRecord> regData, long timeout)
public T syncRun(long wait, java.util.concurrent.TimeUnit unit) throws ClaraException, java.util.concurrent.TimeoutException
wait
- the amount of time units to wait for a responseunit
- the unit of timeClaraException
- if the query could not be sent or receivedjava.util.concurrent.TimeoutException
- if the response is not receivedprotected D self()