org.redkale.net.http

## 类 WebSocketGroup

- java.lang.Object
- - org.redkale.net.http.WebSocketGroup

-     public final class WebSocketGroup
      extends java.lang.Object

  详情见: https://redkale.org

- - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `<T> T` | `getAttribute(java.lang.String name)`
    `java.io.Serializable` | `getGroupid()`
    `WebSocket` | `getRecentWebSocket()` 最近发送消息的WebSocket
    `java.util.stream.Stream<WebSocket>` | `getWebSockets()`
    `boolean` | `isEmpty()`
    `void` | `removeAttribute(java.lang.String name)`
    `int` | `send(boolean recent, java.io.Serializable message, boolean last)`
    `int` | `sendEach(java.io.Serializable message)`
    `int` | `sendEach(java.io.Serializable message, boolean last)`
    `int` | `sendEach(WebSocketPacket packet)`
    `int` | `sendEachPing()`
    `int` | `sendRecent(java.io.Serializable message)`
    `int` | `sendRecent(java.io.Serializable message, boolean last)`
    `int` | `sendRecent(WebSocketPacket packet)`
    `void` | `setAttribute(java.lang.String name, java.lang.Object value)`
    `int` | `size()`
    `java.lang.String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 方法详细资料

    - #### getGroupid

          public java.io.Serializable getGroupid()

    - #### getWebSockets

          public java.util.stream.Stream<WebSocket> getWebSockets()

    - #### isEmpty

          public final boolean isEmpty()

    - #### size

          public final int size()

    - #### getRecentWebSocket

          public final WebSocket getRecentWebSocket()

      最近发送消息的WebSocket
      返回:
        WebSocket

    - #### getAttribute

          public final <T> T getAttribute(java.lang.String name)

    - #### removeAttribute

          public final void removeAttribute(java.lang.String name)

    - #### setAttribute

          public final void setAttribute(java.lang.String name,
                                         java.lang.Object value)

    - #### send

          public final int send(boolean recent,
                                java.io.Serializable message,
                                boolean last)

    - #### sendEach

          public final int sendEach(java.io.Serializable message)

    - #### sendEach

          public final int sendEach(WebSocketPacket packet)

    - #### sendEachPing

          public final int sendEachPing()

    - #### sendRecent

          public final int sendRecent(java.io.Serializable message)

    - #### sendRecent

          public final int sendRecent(WebSocketPacket packet)

    - #### sendEach

          public final int sendEach(java.io.Serializable message,
                                    boolean last)

    - #### sendRecent

          public final int sendRecent(java.io.Serializable message,
                                      boolean last)

    - #### toString

          public java.lang.String toString()

      覆盖:
        `toString` 在类中 `java.lang.Object`