Use long for Channel#await duration

This matches the underlying method called by AbstractChannel and is the
standard for timeouts with a TimeUnit.
This commit is contained in:
Billy Keyes
2014-09-02 15:00:51 -07:00
parent ef5a54d33f
commit c4408ac6dd
2 changed files with 2 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ public abstract class AbstractChannel
closeEvent.await(); closeEvent.await();
} }
public void join(int timeout, TimeUnit unit) public void join(long timeout, TimeUnit unit)
throws ConnectionException { throws ConnectionException {
closeEvent.await(timeout, unit); closeEvent.await(timeout, unit);
} }

View File

@@ -131,7 +131,7 @@ public interface Channel
void join() void join()
throws ConnectionException; throws ConnectionException;
void join(int timeout, TimeUnit unit) void join(long timeout, TimeUnit unit)
throws ConnectionException; throws ConnectionException;
} }