com.shimari.bot
Interface Connection
- All Superinterfaces:
- Channel, Component
- All Known Implementing Classes:
- ConsoleConnection, IRC_Connection
- public interface Connection
- extends Channel, Component
A Connection manages a connection to a user or group of users.
The main subclass is IRC_Connection which connects to an IRC
server and implements the IRC protocol.
Methods inherited from interface com.shimari.framework.Component |
init |
isConnected
public boolean isConnected()
sendMessage
public void sendMessage(java.lang.String target,
java.lang.String message)
broadcastNotice
public void broadcastNotice(java.lang.String message)
- Specified by:
broadcastNotice
in interface Channel
broadcastMessage
public void broadcastMessage(java.lang.String message)
- Specified by:
broadcastMessage
in interface Channel
connect
public void connect()
throws java.io.IOException
- Throws:
java.io.IOException
disconnect
public void disconnect()
setMessageQueue
public void setMessageQueue(java.util.Collection queue)