Commits

Chris Thunes committed f10ddeb

Remove superfluous interface

Comments (0)

Files changed (2)

brewtab-irc/src/main/java/com/brewtab/irc/protocol/IRCChannelHandler.java

  * 
  * @author Christopher Thunes <cthunes@brewtab.com>
  */
-public class IRCChannelHandler extends SimpleChannelHandler implements IRCMessagePipe {
+public class IRCChannelHandler extends SimpleChannelHandler {
     private static final Logger log = LoggerFactory.getLogger(IRCChannelHandler.class);
 
     /** The connection manager which requests are passed to */
     /**
      * Send a message through this connection
      */
-    @Override
     public ChannelFuture sendMessage(IRCMessage message) throws IRCNotConnectedException {
         try {
             return this.channel.write(message);
     /**
      * Send multiple messages through this connection
      */
-    @Override
     public ChannelFuture sendMessages(IRCMessage... messages) throws IRCNotConnectedException {
         try {
             return this.channel.write(messages);

brewtab-irc/src/main/java/com/brewtab/irc/protocol/IRCMessagePipe.java

-package com.brewtab.irc.protocol;
-
-import org.jboss.netty.channel.ChannelFuture;
-
-import com.brewtab.irc.messages.IRCMessage;
-
-/**
- * Implementing this interface allows an object to act as a pipe for sending IRC
- * messages
- * 
- * @author Christopher Thunes <cthunes@brewtab.com>
- */
-public interface IRCMessagePipe {
-    /**
-     * Send the given message
-     * 
-     * @param message
-     *            Message to send
-     * @return a Netty ChannelFuture representing the send operation
-     * @throws IRCNotConnectedException
-     *             if the underlying stream is not connected
-     * @see org.jboss.netty.channel.ChannelFuture
-     */
-    public ChannelFuture sendMessage(IRCMessage message) throws IRCNotConnectedException;
-
-    /**
-     * Send the given messages
-     * 
-     * @param messages
-     *            Messages to send
-     * @return a Netty ChannelFuture representing the send operation
-     * @throws IRCNotConnectedException
-     *             if the underlying stream is not connected
-     * @see org.jboss.netty.channel.ChannelFuture
-     */
-    public ChannelFuture sendMessages(IRCMessage... messages) throws IRCNotConnectedException;
-}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.