1 /** 2 * Autogenerated by Thrift 3 * 4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 * @generated 6 */ 7 8 package test.fixtures.interactions; 9 10 import com.facebook.swift.codec.*; 11 import com.facebook.swift.codec.ThriftField.Requiredness; 12 import com.facebook.swift.service.*; 13 import com.facebook.thrift.client.*; 14 import com.google.common.util.concurrent.ListenableFuture; 15 import java.io.*; 16 import java.util.*; 17 18 @SwiftGenerated 19 @com.facebook.swift.service.ThriftService("MyService") 20 public interface MyService extends java.io.Closeable { 21 @com.facebook.swift.service.ThriftService("MyService") 22 public interface Async extends java.io.Closeable { close()23 @java.lang.Override void close(); 24 25 @ThriftMethod(value = "foo") foo()26 ListenableFuture<Void> foo(); 27 foo( RpcOptions rpcOptions)28 default ListenableFuture<Void> foo( 29 RpcOptions rpcOptions) { 30 throw new UnsupportedOperationException(); 31 } 32 fooWrapper( RpcOptions rpcOptions)33 default ListenableFuture<ResponseWrapper<Void>> fooWrapper( 34 RpcOptions rpcOptions) { 35 throw new UnsupportedOperationException(); 36 } 37 @com.facebook.swift.service.ThriftInteraction("MyInteraction") 38 public interface MyInteraction extends java.io.Closeable { 39 @ThriftMethod(value = "frobnicate", 40 exception = { 41 @ThriftException(type=test.fixtures.interactions.CustomException.class, id=1) 42 }) frobnicate()43 ListenableFuture<Integer> frobnicate(); 44 frobnicate( RpcOptions rpcOptions)45 ListenableFuture<Integer> frobnicate( 46 RpcOptions rpcOptions); 47 frobnicateWrapper( RpcOptions rpcOptions)48 ListenableFuture<ResponseWrapper<Integer>> frobnicateWrapper( 49 RpcOptions rpcOptions); 50 @ThriftMethod(value = "ping", 51 oneway = true) ping()52 ListenableFuture<Void> ping(); 53 ping( RpcOptions rpcOptions)54 ListenableFuture<Void> ping( 55 RpcOptions rpcOptions); 56 pingWrapper( RpcOptions rpcOptions)57 ListenableFuture<ResponseWrapper<Void>> pingWrapper( 58 RpcOptions rpcOptions); 59 60 @java.lang.Override close()61 void close(); 62 } 63 createMyInteraction()64 public MyInteraction createMyInteraction(); 65 66 @com.facebook.swift.service.ThriftInteraction("MyInteractionFast") 67 public interface MyInteractionFast extends java.io.Closeable { 68 @ThriftMethod(value = "frobnicate") frobnicate()69 ListenableFuture<Integer> frobnicate(); 70 frobnicate( RpcOptions rpcOptions)71 ListenableFuture<Integer> frobnicate( 72 RpcOptions rpcOptions); 73 frobnicateWrapper( RpcOptions rpcOptions)74 ListenableFuture<ResponseWrapper<Integer>> frobnicateWrapper( 75 RpcOptions rpcOptions); 76 @ThriftMethod(value = "ping", 77 oneway = true) ping()78 ListenableFuture<Void> ping(); 79 ping( RpcOptions rpcOptions)80 ListenableFuture<Void> ping( 81 RpcOptions rpcOptions); 82 pingWrapper( RpcOptions rpcOptions)83 ListenableFuture<ResponseWrapper<Void>> pingWrapper( 84 RpcOptions rpcOptions); 85 86 @java.lang.Override close()87 void close(); 88 } 89 createMyInteractionFast()90 public MyInteractionFast createMyInteractionFast(); 91 92 @com.facebook.swift.service.ThriftInteraction("SerialInteraction") 93 public interface SerialInteraction extends java.io.Closeable { 94 @ThriftMethod(value = "frobnicate") frobnicate()95 ListenableFuture<Void> frobnicate(); 96 frobnicate( RpcOptions rpcOptions)97 ListenableFuture<Void> frobnicate( 98 RpcOptions rpcOptions); 99 frobnicateWrapper( RpcOptions rpcOptions)100 ListenableFuture<ResponseWrapper<Void>> frobnicateWrapper( 101 RpcOptions rpcOptions); 102 103 @java.lang.Override close()104 void close(); 105 } 106 createSerialInteraction()107 public SerialInteraction createSerialInteraction(); 108 } close()109 @java.lang.Override void close(); 110 111 @ThriftMethod(value = "foo") foo()112 void foo() throws org.apache.thrift.TException; 113 foo( RpcOptions rpcOptions)114 default void foo( 115 RpcOptions rpcOptions) throws org.apache.thrift.TException { 116 throw new UnsupportedOperationException(); 117 } 118 fooWrapper( RpcOptions rpcOptions)119 default ResponseWrapper<Void> fooWrapper( 120 RpcOptions rpcOptions) throws org.apache.thrift.TException { 121 throw new UnsupportedOperationException(); 122 } 123 124 @com.facebook.swift.service.ThriftService("MyService") 125 interface Reactive extends reactor.core.Disposable { 126 @ThriftMethod(value = "foo") foo()127 reactor.core.publisher.Mono<Void> foo(); 128 foo(RpcOptions rpcOptions)129 default reactor.core.publisher.Mono<Void> foo(RpcOptions rpcOptions) { 130 throw new UnsupportedOperationException(); 131 } 132 fooWrapper(RpcOptions rpcOptions)133 default reactor.core.publisher.Mono<ResponseWrapper<Void>> fooWrapper(RpcOptions rpcOptions) { 134 throw new UnsupportedOperationException(); 135 } 136 137 @com.facebook.swift.service.ThriftInteraction("MyInteraction") 138 public interface MyInteraction extends reactor.core.Disposable { 139 @ThriftMethod(value = "frobnicate", 140 exception = { 141 @ThriftException(type=test.fixtures.interactions.CustomException.class, id=1) 142 }) frobnicate()143 reactor.core.publisher.Mono<Integer> frobnicate(); 144 frobnicate(RpcOptions rpcOptions)145 reactor.core.publisher.Mono<Integer> frobnicate(RpcOptions rpcOptions); 146 frobnicateWrapper(RpcOptions rpcOptions)147 reactor.core.publisher.Mono<ResponseWrapper<Integer>> frobnicateWrapper(RpcOptions rpcOptions); 148 149 @ThriftMethod(value = "ping", 150 oneway = true) ping()151 reactor.core.publisher.Mono<Void> ping(); 152 ping(RpcOptions rpcOptions)153 reactor.core.publisher.Mono<Void> ping(RpcOptions rpcOptions); 154 pingWrapper(RpcOptions rpcOptions)155 reactor.core.publisher.Mono<ResponseWrapper<Void>> pingWrapper(RpcOptions rpcOptions); 156 truthify()157 reactor.core.publisher.Flux<Boolean> truthify(); 158 truthify(RpcOptions rpcOptions)159 default reactor.core.publisher.Flux<Boolean> truthify(RpcOptions rpcOptions) { 160 throw new UnsupportedOperationException(); 161 } 162 truthifyWrapper(RpcOptions rpcOptions)163 default reactor.core.publisher.Flux<ResponseWrapper<Boolean>> truthifyWrapper(RpcOptions rpcOptions) { 164 throw new UnsupportedOperationException(); 165 } 166 167 @java.lang.Override dispose()168 void dispose(); 169 } 170 createMyInteraction()171 public MyInteraction createMyInteraction(); 172 173 @com.facebook.swift.service.ThriftInteraction("MyInteractionFast") 174 public interface MyInteractionFast extends reactor.core.Disposable { 175 @ThriftMethod(value = "frobnicate") frobnicate()176 reactor.core.publisher.Mono<Integer> frobnicate(); 177 frobnicate(RpcOptions rpcOptions)178 reactor.core.publisher.Mono<Integer> frobnicate(RpcOptions rpcOptions); 179 frobnicateWrapper(RpcOptions rpcOptions)180 reactor.core.publisher.Mono<ResponseWrapper<Integer>> frobnicateWrapper(RpcOptions rpcOptions); 181 182 @ThriftMethod(value = "ping", 183 oneway = true) ping()184 reactor.core.publisher.Mono<Void> ping(); 185 ping(RpcOptions rpcOptions)186 reactor.core.publisher.Mono<Void> ping(RpcOptions rpcOptions); 187 pingWrapper(RpcOptions rpcOptions)188 reactor.core.publisher.Mono<ResponseWrapper<Void>> pingWrapper(RpcOptions rpcOptions); 189 truthify()190 reactor.core.publisher.Flux<Boolean> truthify(); 191 truthify(RpcOptions rpcOptions)192 default reactor.core.publisher.Flux<Boolean> truthify(RpcOptions rpcOptions) { 193 throw new UnsupportedOperationException(); 194 } 195 truthifyWrapper(RpcOptions rpcOptions)196 default reactor.core.publisher.Flux<ResponseWrapper<Boolean>> truthifyWrapper(RpcOptions rpcOptions) { 197 throw new UnsupportedOperationException(); 198 } 199 200 @java.lang.Override dispose()201 void dispose(); 202 } 203 createMyInteractionFast()204 public MyInteractionFast createMyInteractionFast(); 205 206 @com.facebook.swift.service.ThriftInteraction("SerialInteraction") 207 public interface SerialInteraction extends reactor.core.Disposable { 208 @ThriftMethod(value = "frobnicate") frobnicate()209 reactor.core.publisher.Mono<Void> frobnicate(); 210 frobnicate(RpcOptions rpcOptions)211 reactor.core.publisher.Mono<Void> frobnicate(RpcOptions rpcOptions); 212 frobnicateWrapper(RpcOptions rpcOptions)213 reactor.core.publisher.Mono<ResponseWrapper<Void>> frobnicateWrapper(RpcOptions rpcOptions); 214 215 @java.lang.Override dispose()216 void dispose(); 217 } 218 createSerialInteraction()219 public SerialInteraction createSerialInteraction(); 220 } 221 @com.facebook.swift.service.ThriftInteraction("MyInteraction") 222 public interface MyInteraction extends java.io.Closeable { 223 @ThriftMethod(value = "frobnicate", 224 exception = { 225 @ThriftException(type=test.fixtures.interactions.CustomException.class, id=1) 226 }) frobnicate()227 int frobnicate() throws test.fixtures.interactions.CustomException, org.apache.thrift.TException; 228 frobnicate( RpcOptions rpcOptions)229 int frobnicate( 230 RpcOptions rpcOptions) throws test.fixtures.interactions.CustomException, org.apache.thrift.TException; 231 frobnicateWrapper( RpcOptions rpcOptions)232 ResponseWrapper<Integer> frobnicateWrapper( 233 RpcOptions rpcOptions) throws test.fixtures.interactions.CustomException, org.apache.thrift.TException; 234 @ThriftMethod(value = "ping", 235 oneway = true) ping()236 void ping() throws org.apache.thrift.TException; 237 ping( RpcOptions rpcOptions)238 void ping( 239 RpcOptions rpcOptions) throws org.apache.thrift.TException; 240 pingWrapper( RpcOptions rpcOptions)241 ResponseWrapper<Void> pingWrapper( 242 RpcOptions rpcOptions) throws org.apache.thrift.TException; 243 244 @java.lang.Override close()245 void close(); 246 } 247 createMyInteraction()248 MyInteraction createMyInteraction(); 249 250 @com.facebook.swift.service.ThriftInteraction("MyInteractionFast") 251 public interface MyInteractionFast extends java.io.Closeable { 252 @ThriftMethod(value = "frobnicate") frobnicate()253 int frobnicate() throws org.apache.thrift.TException; 254 frobnicate( RpcOptions rpcOptions)255 int frobnicate( 256 RpcOptions rpcOptions) throws org.apache.thrift.TException; 257 frobnicateWrapper( RpcOptions rpcOptions)258 ResponseWrapper<Integer> frobnicateWrapper( 259 RpcOptions rpcOptions) throws org.apache.thrift.TException; 260 @ThriftMethod(value = "ping", 261 oneway = true) ping()262 void ping() throws org.apache.thrift.TException; 263 ping( RpcOptions rpcOptions)264 void ping( 265 RpcOptions rpcOptions) throws org.apache.thrift.TException; 266 pingWrapper( RpcOptions rpcOptions)267 ResponseWrapper<Void> pingWrapper( 268 RpcOptions rpcOptions) throws org.apache.thrift.TException; 269 270 @java.lang.Override close()271 void close(); 272 } 273 createMyInteractionFast()274 MyInteractionFast createMyInteractionFast(); 275 276 @com.facebook.swift.service.ThriftInteraction("SerialInteraction") 277 public interface SerialInteraction extends java.io.Closeable { 278 @ThriftMethod(value = "frobnicate") frobnicate()279 void frobnicate() throws org.apache.thrift.TException; 280 frobnicate( RpcOptions rpcOptions)281 void frobnicate( 282 RpcOptions rpcOptions) throws org.apache.thrift.TException; 283 frobnicateWrapper( RpcOptions rpcOptions)284 ResponseWrapper<Void> frobnicateWrapper( 285 RpcOptions rpcOptions) throws org.apache.thrift.TException; 286 287 @java.lang.Override close()288 void close(); 289 } 290 createSerialInteraction()291 SerialInteraction createSerialInteraction(); 292 } 293