SWIMNIOShell

public final class SWIMNIOShell

The SWIM shell is responsible for driving all interactions of the SWIM.Instance with the outside world.

Warning

Take care to only interact with the shell through receive... prefixed functions, as they ensure that all operations performed on the shell are properly synchronized by hopping to the right event loop.

See also

SWIM.Instance for detailed documentation about the SWIM protocol implementation.

  • Undocumented

    Declaration

    Swift

    public var peer: SWIM.NIOPeer { get }
  • Undocumented

    Declaration

    Swift

    public var node: Node { get }
  • Receive a shutdown signal and initiate the termination of the shell along with the swim protocol instance.

    Upon shutdown the myself member is marked as .dead, although it should not be expected to spread this information to other nodes. It technically could, but it is not expected not required to.

    Declaration

    Swift

    public func receiveShutdown()

Receiving messages