Class FkWrap

  • All Implemented Interfaces:
    Fork
    Direct Known Subclasses:
    FkFixed, FkHost

    public class FkWrap
    extends Object
    implements Fork
    Wrap for the fork.

    The class is immutable and thread-safe.

    Since:
    0.13
    See Also:
    RsFork
    • Constructor Detail

      • FkWrap

        public FkWrap​(Fork fork)
        Ctor.
        Parameters:
        fork - Original fork
    • Method Detail

      • route

        public final Opt<Response> route​(Request req)
                                  throws Exception
        Description copied from interface: Fork
        Process this request or ignore it.
        Specified by:
        route in interface Fork
        Parameters:
        req - Request
        Returns:
        Non-empty list of responses if it was processed
        Throws:
        Exception - If fails