Class ClientConnectEvent

  • All Implemented Interfaces:

    public class ClientConnectEvent
    extends Event
    implements Cancellable
    Event called to represent an initial client connection.
    Note: This event is called at an early stage of every connection, handling should be fast.
    • Method Detail

      • isCancelled

        public boolean isCancelled()
        Cancelled state.
        Specified by:
        isCancelled in interface Cancellable
        the cancelled state of this event
      • getSocketAddress

        public SocketAddress getSocketAddress()
        Remote address of connection.
      • getListener

        public ListenerInfo getListener()
        Listener that accepted the connection.
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Cancelled state.
        Specified by:
        setCancelled in interface Cancellable
        cancelled - the state to set
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        hashCode in class Object