Interface JeroMQSecurity

All Known Implementing Classes:
JeroMQCurveSecurity

public interface JeroMQSecurity
Implements a security chain for JeroMQ Sockets.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final JeroMQSecurity
    The default JeroMQSecurity which simply returns the ZMQ.Socket as provided with no alterations.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.zeromq.ZMQ.Socket
    client(Supplier<org.zeromq.ZMQ.Socket> socketSupplier)
    Configures the socket for use as a client socket.
    default org.zeromq.ZMQ.Socket
    client(org.zeromq.ZMQ.Socket socket)
    Configures the socket for use as a client socket.
    org.zeromq.ZMQ.Socket
    server(Supplier<org.zeromq.ZMQ.Socket> socketSupplier)
    Configures the socket for use as a server socket.
    default org.zeromq.ZMQ.Socket
    server(org.zeromq.ZMQ.Socket socket)
    Configures the socket for use as a server socket.
  • Field Details

    • DEFAULT

      static final JeroMQSecurity DEFAULT
      The default JeroMQSecurity which simply returns the ZMQ.Socket as provided with no alterations.
  • Method Details

    • server

      default org.zeromq.ZMQ.Socket server(org.zeromq.ZMQ.Socket socket)
      Configures the socket for use as a server socket.
      Parameters:
      socket - the socket
      Returns:
      the socket
    • server

      org.zeromq.ZMQ.Socket server(Supplier<org.zeromq.ZMQ.Socket> socketSupplier)
      Configures the socket for use as a server socket.
      Parameters:
      socketSupplier - the Supplier for the ZMQ.Socket
      Returns:
      the socket
    • client

      default org.zeromq.ZMQ.Socket client(org.zeromq.ZMQ.Socket socket)
      Configures the socket for use as a client socket.
      Parameters:
      socket - the socket
      Returns:
      the socket
    • client

      org.zeromq.ZMQ.Socket client(Supplier<org.zeromq.ZMQ.Socket> socketSupplier)
      Configures the socket for use as a client socket.
      Parameters:
      socketSupplier - the Supplier for the ZMQ.Socket
      Returns:
      the socket