Package com.iizix.nio

Interface ConnectionAttachment


public interface ConnectionAttachment
The connection attachment interface is used for a server receiving new connections using the WebSocketAcceptor interface.
Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the attachment object for this communication link.
    void
    setAttachment(Object attachment)
    Called when a new connection is accepted and attaches the object to the communication link.
  • Method Details

    • setAttachment

      void setAttachment(Object attachment)
      Called when a new connection is accepted and attaches the object to the communication link.
      Parameters:
      attachment - A user-defined object instance that can be retrieved by getAttachment.
    • getAttachment

      Object getAttachment()
      Gets the attachment object for this communication link.
      Returns:
      Object the attachment assigned by setAttachement(object) method, null for none.