Interface TemporaryChannel

All Superinterfaces:
Channel

public interface TemporaryChannel extends Channel
The channel that is droppable
  • Method Details

    • drop

      void drop()
      Drop the channel, all the users who are chatting in this channel will be moved into global channel
    • isDropped

      boolean isDropped()
      To check whether the channel is dropped
      Returns:
      the status
    • addUser

      void addUser(User user)
      Make a user have access to the channel
      Parameters:
      user - the user
    • removeUser

      void removeUser(User user)
      Make a user not have access to the channel
      Parameters:
      user - the user