All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.core.websocket.WebsocketEndpointManager.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






WebsocketEndpointManager (org.spincast:spincast-framework 1.0.0 API)












org.spincast.core.websocket

Interface WebsocketEndpointManager

    • Method Detail

      • getEndpointId

        String getEndpointId()
        The endpoint id
      • getPeersIds

        Set<String> getPeersIds()
        The connected peers' ids.
      • closePeer

        void closePeer(String peerId)
        Closes a specific peer connection on the endpoint.
      • closePeer

        void closePeer(String peerId,
                       int closingCode,
                       String closingReason)
        Closes a specific peer connection on the endpoint.
      • closeEndpoint

        void closeEndpoint()
        Closes the entire WebSocket endpoint. All peer connections of this endpoint will be closed and the endpoint will be removed.

        Will try to send a "closing" message to the peers before closing their connection.

      • closeEndpoint

        void closeEndpoint(boolean sendClosingMessageToPeers)
        Closes the entire WebSocket endpoint. All peer connections of this endpoint will be closed and the endpoint will be removed.
        Parameters:
        sendClosingMessageToPeers - if true, Spincast will try to send a "closing" message to the peers before closing their connections.
      • closeEndpoint

        void closeEndpoint(int closingCode,
                           String closingReason)
        Closes the entire WebSocket endpoint. All peer connections of this endpoint will be closed and the endpoint will be removed.

        Will try to send a "closing" message to the peers before closing their connection.

      • isClosing

        boolean isClosing()
        Is this endpoint closing?
      • isClosed

        boolean isClosed()
        Is this endpoint closed?

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy