コード例 #1
0
 @TypeInfo("io.vertx.ceylon.core::TimeoutStream")
 public TimeoutStream endHandler(
     final @TypeInfo("ceylon.language::Anything()?") @Name("endHandler") Callable<?> endHandler) {
   io.vertx.core.Handler<java.lang.Void> arg_0 =
       endHandler == null
           ? null
           : new io.vertx.core.Handler<java.lang.Void>() {
             public void handle(java.lang.Void event) {
               endHandler.$call$();
             }
           };
   TimeoutStream ret =
       io.vertx.ceylon.core.TimeoutStream.TO_CEYLON
           .converter()
           .safeConvert(delegate.endHandler(arg_0));
   return this;
 }
コード例 #2
0
 @TypeInfo("io.vertx.ceylon.core::TimeoutStream")
 public TimeoutStream handler(
     final @TypeInfo("ceylon.language::Anything(ceylon.language::Integer)?") @Name("handler")
         Callable<?> handler) {
   io.vertx.core.Handler<java.lang.Long> arg_0 =
       handler == null
           ? null
           : new io.vertx.core.Handler<java.lang.Long>() {
             public void handle(java.lang.Long event) {
               handler.$call$((Object) io.vertx.lang.ceylon.ToCeylon.Long.safeConvert(event));
             }
           };
   TimeoutStream ret =
       io.vertx.ceylon.core.TimeoutStream.TO_CEYLON
           .converter()
           .safeConvert(delegate.handler(arg_0));
   return this;
 }
コード例 #3
0
 @TypeInfo("io.vertx.ceylon.core::TimeoutStream")
 public TimeoutStream exceptionHandler(
     final @TypeInfo("ceylon.language::Anything(ceylon.language::Throwable)?") @Name("handler")
         Callable<?> handler) {
   io.vertx.core.Handler<java.lang.Throwable> arg_0 =
       handler == null
           ? null
           : new io.vertx.core.Handler<java.lang.Throwable>() {
             public void handle(java.lang.Throwable event) {
               handler.$call$((Object) event);
             }
           };
   TimeoutStream ret =
       io.vertx.ceylon.core.TimeoutStream.TO_CEYLON
           .converter()
           .safeConvert(delegate.exceptionHandler(arg_0));
   return this;
 }
コード例 #4
0
 @TypeInfo("io.vertx.ceylon.core::TimeoutStream")
 public TimeoutStream resume() {
   TimeoutStream ret =
       io.vertx.ceylon.core.TimeoutStream.TO_CEYLON.converter().safeConvert(delegate.resume());
   return this;
 }