summaryrefslogtreecommitdiff
path: root/same/src
diff options
context:
space:
mode:
Diffstat (limited to 'same/src')
-rw-r--r--same/src/main/java/com/orbekk/same/RpcFactory.java17
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;
+ }
+}