/** * Indicates that the fiber should be suspended. * Once {@link Fiber#resume(Packet) resumed}, resume with the * {@link Tube#processRequest(Packet)} on the given next tube. * @deprecated Use variants that pass {@link Runnable} */ public void suspend(Tube next) { suspend(next, null); }
/** * Indicates that the fiber should be suspended. * Once {@link Fiber#resume(Packet) resumed}, return the response processing. * @deprecated Use variants that pass {@link Runnable} */ public void suspend() { suspend(null, null); }
/** * Indicates that the fiber should be suspended. * Once {@link Fiber#resume(Packet) resumed}, return the response processing. * @deprecated Use variants that pass {@link Runnable} */ public void suspend() { suspend(null, null); }
/** * Indicates that the fiber should be suspended. * Once {@link Fiber#resume(Packet) resumed}, return the response processing. * @deprecated Use variants that pass {@link Runnable} */ public void suspend() { suspend(null, null); }
/** * Indicates that the fiber should be suspended. * Once {@link Fiber#resume(Packet) resumed}, resume with the * {@link Tube#processRequest(Packet)} on the given next tube. * @deprecated Use variants that pass {@link Runnable} */ public void suspend(Tube next) { suspend(next, null); }
/** * Indicates that the fiber should be suspended. * Once {@link Fiber#resume(Packet) resumed}, resume with the * {@link Tube#processRequest(Packet)} on the given next tube. * @deprecated Use variants that pass {@link Runnable} */ public void suspend(Tube next) { suspend(next, null); }
/** * Indicates that the fiber should be suspended. Once the current {@link Thread} * exits the fiber's control loop, the onExitRunnable will be invoked. This {@link Runnable} * may call {@link Fiber#resume(Packet)}; however it is still guaranteed that the current * Thread will return control, therefore, further processing will be handled on a {@link Thread} * from the {@link Executor}. For synchronous cases, the Thread invoking this fiber cannot return * until fiber processing is complete; therefore, the guarantee is only that the onExitRunnable * will be invoked prior to completing the suspension. * @since 2.2.7 */ public void suspend(Runnable onExitRunnable) { suspend(null, onExitRunnable); }
/** * Indicates that the fiber should be suspended. Once the current {@link Thread} * exits the fiber's control loop, the onExitRunnable will be invoked. This {@link Runnable} * may call {@link Fiber#resume(Packet)}; however it is still guaranteed that the current * Thread will return control, therefore, further processing will be handled on a {@link Thread} * from the {@link Executor}. For synchronous cases, the Thread invoking this fiber cannot return * until fiber processing is complete; therefore, the guarantee is only that the onExitRunnable * will be invoked prior to completing the suspension. * @since 2.2.7 */ public void suspend(Runnable onExitRunnable) { suspend(null, onExitRunnable); }
@Deprecated protected final NextAction doSuspend() { NextAction na = new NextAction(); na.suspend(); return na; }
protected final NextAction doSuspend(Runnable onExitRunnable) { NextAction na = new NextAction(); na.suspend(onExitRunnable); return na; }
@Deprecated protected final NextAction doSuspend(Tube next) { NextAction na = new NextAction(); na.suspend(next); return na; }
@Deprecated protected final NextAction doSuspend(Tube next) { NextAction na = new NextAction(); na.suspend(next); return na; }
protected final NextAction doSuspend(Tube next, Runnable onExitRunnable) { NextAction na = new NextAction(); na.suspend(next, onExitRunnable); return na; }
protected final NextAction doSuspend(Tube next, Runnable onExitRunnable) { NextAction na = new NextAction(); na.suspend(next, onExitRunnable); return na; }
protected final NextAction doSuspend(Runnable onExitRunnable) { NextAction na = new NextAction(); na.suspend(onExitRunnable); return na; }
@Deprecated protected final NextAction doSuspend(Tube next) { NextAction na = new NextAction(); na.suspend(next); return na; }
@Deprecated protected final NextAction doSuspend() { NextAction na = new NextAction(); na.suspend(); return na; }
protected final NextAction doSuspend(Tube next, Runnable onExitRunnable) { NextAction na = new NextAction(); na.suspend(next, onExitRunnable); return na; }
@Deprecated protected final NextAction doSuspend() { NextAction na = new NextAction(); na.suspend(); return na; }
protected final NextAction doSuspend(Runnable onExitRunnable) { NextAction na = new NextAction(); na.suspend(onExitRunnable); return na; }