Awaits for an Output wrapped with Try (indicating if the com.twitter.util.Future is failed).
Awaits for an Output wrapped with Try (indicating if the com.twitter.util.Future is failed).
Some(output)
if this endpoint was matched on a given input, None
otherwise.
This method is blocking. Never use it in production.
Awaits an Output of the Endpoint result or throws an exception if an underlying com.twitter.util.Future is failed.
Awaits an Output of the Endpoint result or throws an exception if an underlying com.twitter.util.Future is failed.
Some(output)
if this endpoint was matched on a given input, None
otherwise.
This method is blocking. Never use it in production.
Awaits a value from the Output wrapped with Try (indicating if either the com.twitter.util.Future is failed or Output wasn't a payload).
Awaits a value from the Output wrapped with Try (indicating if either the com.twitter.util.Future is failed or Output wasn't a payload).
Some(value)
if this endpoint was matched on a given input, None
otherwise.
This method is blocking. Never use it in production.
Awaits a value from the Output or throws an exception if either an underlying com.twitter.util.Future is failed or Output wasn't a payload.
Awaits a value from the Output or throws an exception if either an underlying com.twitter.util.Future is failed or Output wasn't a payload.
Some(value)
if this endpoint was matched on a given input,
None
otherwise.
@note This method is blocking. Never use it in production.
Returns the remainder of the Input after an Endpoint is matched.
Queries an Output of the Endpoint result or throws an exception if an underlying com.twitter.util.Future is failed.
Queries an Output of the Endpoint result or throws an exception if an underlying com.twitter.util.Future is failed.
Some(output)
if this endpoint was matched on a given input,
None
otherwise.
(Since version 0.12) Use awaitOutputUnsafe(Duration) instead
This method is blocking and awaits on the underlying com.twitter.util.Future with the upper bound of 10 seconds.
Queries an Output wrapped with Try (indicating if the com.twitter.util.Future is failed).
Queries an Output wrapped with Try (indicating if the com.twitter.util.Future is failed).
Some(output)
if this endpoint was matched on a given input,
None
otherwise.
(Since version 0.12) Use awaitOutput(Duration) instead
This method is blocking and awaits on the underlying com.twitter.util.Future with the upper bound of 10 seconds.
Queries a value from the Output wrapped with Try (indicating if either the com.twitter.util.Future is failed or Output wasn't a payload).
Queries a value from the Output wrapped with Try (indicating if either the com.twitter.util.Future is failed or Output wasn't a payload).
Some(value)
if this endpoint was matched on a given input,
None
otherwise.
(Since version 0.12) Use awaitValue(Duration) instead
This method is blocking and awaits on the underlying com.twitter.util.Future with the upper bound of 10 seconds.
Queries the value from the Output or throws an exception if either an underlying com.twitter.util.Future is failed or Output wasn't a payload.
Queries the value from the Output or throws an exception if either an underlying com.twitter.util.Future is failed or Output wasn't a payload.
Some(value)
if this endpoint was matched on a given input,
None
otherwise.
(Since version 0.12) Use awaitValueUnsafe instead
This method is blocking and awaits on the underlying com.twitter.util.Future with the upper bound of 10 seconds.
A result returned from an Endpoint. This models
Option[(Input, Future[Output])]
and represents two cases:remainder
andoutput
is returned.None
is returned.API methods exposed on this type are mostly introduced for testing.
This class also provides various of
awaitX
methods useful for testing and experimenting.