summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-04-25 10:47:03 +0200
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-04-25 10:47:03 +0200
commitbeca45333ed2139b82f45fbe0d408f36c5f5f984 (patch)
tree81811ca44a5909251aa8a86227c4c29b542a2f9b /src/main/java
parent5229954adf0d51afd2d376ed4581ae6d1bd059fa (diff)
Fix typo.
timout => timeout
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/orbekk/protobuf/Rpc.java4
-rw-r--r--src/main/java/com/orbekk/protobuf/RpcChannel.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/orbekk/protobuf/Rpc.java b/src/main/java/com/orbekk/protobuf/Rpc.java
index f22bbc3..68528f7 100644
--- a/src/main/java/com/orbekk/protobuf/Rpc.java
+++ b/src/main/java/com/orbekk/protobuf/Rpc.java
@@ -124,7 +124,7 @@ public class Rpc implements RpcController {
}
}
- public long getTimout() {
+ public long getTimeout() {
return timeoutMillis;
}
@@ -132,7 +132,7 @@ public class Rpc implements RpcController {
*
* The default timeout is 0, i.e. never time out.
*/
- public void setTimout(long milliseconds) {
+ public void setTimeout(long milliseconds) {
timeoutMillis = milliseconds;
}
diff --git a/src/main/java/com/orbekk/protobuf/RpcChannel.java b/src/main/java/com/orbekk/protobuf/RpcChannel.java
index a558228..9c52651 100644
--- a/src/main/java/com/orbekk/protobuf/RpcChannel.java
+++ b/src/main/java/com/orbekk/protobuf/RpcChannel.java
@@ -218,7 +218,7 @@ public class RpcChannel implements com.google.protobuf.RpcChannel {
}
private void addTimeoutHandler(RequestMetadata request) {
- long timeout = request.rpc.getTimout();
+ long timeout = request.rpc.getTimeout();
if (timeout > 0) {
timer.schedule(new CancelRequestTask(request.id), timeout);
}