public class SharedTestState
extends java.lang.Object
Constructor and Description |
---|
SharedTestState() |
Modifier and Type | Method and Description |
---|---|
void |
blackhole(Address a,
Address b,
ThrottlerTransportAdapter.Direction direction)
Enable blackholing between given address in given direction
|
void |
failInboundStreamOnce(java.lang.Throwable ex)
Cause the inbound stream to fail with the given exception.
|
scala.Option<java.lang.Throwable> |
getInboundFailureOnce()
Get the exception to fail the inbound stream with and immediately reset the state to not-failed.
|
boolean |
isBlackhole(Address from,
Address to) |
void |
passThrough(Address a,
Address b,
ThrottlerTransportAdapter.Direction direction) |
public void blackhole(Address a, Address b, ThrottlerTransportAdapter.Direction direction)
public final void failInboundStreamOnce(java.lang.Throwable ex)
ex
- (undocumented)public final scala.Option<java.lang.Throwable> getInboundFailureOnce()
public void passThrough(Address a, Address b, ThrottlerTransportAdapter.Direction direction)