diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-04-25 12:48:23 +0200 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-04-25 12:48:23 +0200 |
commit | dc9e014d453e469442cb3555f6c62d496e04dee7 (patch) | |
tree | 379a18ee5e546feddfd292b3dda28dd3489a8b8a /same/src/main/java/com | |
parent | 768938fa1e2bfaa5a246e28badefc7d8fe7cadd3 (diff) |
Add RpcFactory.
Diffstat (limited to 'same/src/main/java/com')
-rw-r--r-- | same/src/main/java/com/orbekk/same/RpcFactory.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/same/src/main/java/com/orbekk/same/RpcFactory.java b/same/src/main/java/com/orbekk/same/RpcFactory.java new file mode 100644 index 0000000..4f34a1e --- /dev/null +++ b/same/src/main/java/com/orbekk/same/RpcFactory.java @@ -0,0 +1,17 @@ +package com.orbekk.same; + +import com.orbekk.protobuf.Rpc; + +public class RpcFactory { + private final long timeoutMillis; + + public RpcFactory(long timeoutMillis) { + this.timeoutMillis = timeoutMillis; + } + + public Rpc create() { + Rpc rpc = new Rpc(); + rpc.setTimeout(timeoutMillis); + return rpc; + } +} |