public class DataNotAvailableException
extends org.teiid.core.TeiidRuntimeException
strict
is set to true. With strict
false, the delay is the maximum amount
of time before the plan will be re-queued for execution. There are several scenarios that would cause the delay to be shorter, such as
multiple sources where one source returns a shorter delay or if the engine believes more work is to be done before allowing the plan to sit idle.
Modifier and Type | Field and Description |
---|---|
static DataNotAvailableException |
NO_POLLING
Indicate that the engine should not poll for results and will be notified
via the
ExecutionContext.dataAvailable() method. |
Constructor and Description |
---|
DataNotAvailableException()
Uses a delay of 0, which implies an immediate poll for results.
|
DataNotAvailableException(Date waitUntil)
Instructs the engine to wait until the Date is met before getting results.
|
DataNotAvailableException(long retryDelay)
Uses the given retryDelay.
|
Modifier and Type | Method and Description |
---|---|
long |
getRetryDelay() |
Date |
getWaitUntil() |
boolean |
isStrict()
If the delay or Date is strictly enforced then the execution will not asked for results until
after that time or until
ExecutionContext.dataAvailable() is called. |
void |
setStrict(boolean strict) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final DataNotAvailableException NO_POLLING
ExecutionContext.dataAvailable()
method. However the engine may still ask
for results before the dataAvailable is called.public DataNotAvailableException()
public DataNotAvailableException(long retryDelay)
NO_POLLING
and will be notified
via the ExecutionContext.dataAvailable()
method.retryDelay
- in millisecondspublic DataNotAvailableException(Date waitUntil)
waitUntil
- public long getRetryDelay()
public Date getWaitUntil()
public boolean isStrict()
ExecutionContext.dataAvailable()
is called.public void setStrict(boolean strict)
Copyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.