Package ch.softappeal.yass.core.remote

Examples of ch.softappeal.yass.core.remote.ValueReply


        contractSerializer.read(reader),
        toArray((List)contractSerializer.read(reader))
      );
    }
    if (type == VALUE_REPLY) {
      return new ValueReply(
        contractSerializer.read(reader)
      );
    }
    return new ExceptionReply(
      (Throwable)contractSerializer.read(reader)
View Full Code Here


      contractSerializer.write(request.serviceId, writer);
      contractSerializer.write(request.methodId, writer);
      contractSerializer.write((request.arguments == null) ? NO_ARGUMENTS : Arrays.asList(request.arguments), writer);
    } else if (message instanceof ValueReply) {
      writer.writeByte(VALUE_REPLY);
      final ValueReply reply = (ValueReply)message;
      contractSerializer.write(reply.value, writer);
    } else {
      writer.writeByte(EXCEPTION_REPLY);
      final ExceptionReply reply = (ExceptionReply)message;
      contractSerializer.write(reply.throwable, writer);
View Full Code Here

        serializer.read(reader),
        serializer.read(reader),
        toArray((List)serializer.read(reader))
      );
    } else if (type == VALUE_REPLY) {
      return new ValueReply(
        serializer.read(reader)
      );
    } else {
      return new ExceptionReply(
        (Throwable)serializer.read(reader)
View Full Code Here

      serializer.write(request.serviceId, writer);
      serializer.write(request.methodId, writer);
      serializer.write((request.arguments == null) ? NO_ARGUMENTS : Arrays.asList(request.arguments), writer);
    } else if (message instanceof ValueReply) {
      writer.writeByte(VALUE_REPLY);
      final ValueReply reply = (ValueReply)message;
      serializer.write(reply.value, writer);
    } else {
      writer.writeByte(EXCEPTION_REPLY);
      final ExceptionReply reply = (ExceptionReply)message;
      serializer.write(reply.throwable, writer);
View Full Code Here

        serializer.read(reader),
        toArray((List)serializer.read(reader))
      );
    }
    if (type == VALUE_REPLY) {
      return new ValueReply(
        serializer.read(reader)
      );
    }
    return new ExceptionReply(
      (Throwable)serializer.read(reader)
View Full Code Here

      serializer.write(request.serviceId, writer);
      serializer.write(request.methodId, writer);
      serializer.write((request.arguments == null) ? NO_ARGUMENTS : Arrays.asList(request.arguments), writer);
    } else if (message instanceof ValueReply) {
      writer.writeByte(VALUE_REPLY);
      final ValueReply reply = (ValueReply)message;
      serializer.write(reply.value, writer);
    } else {
      writer.writeByte(EXCEPTION_REPLY);
      final ExceptionReply reply = (ExceptionReply)message;
      serializer.write(reply.throwable, writer);
View Full Code Here

        serializer.read(reader),
        serializer.read(reader),
        toArray((List)serializer.read(reader))
      );
    } else if (type == VALUE_REPLY) {
      return new ValueReply(
        serializer.read(reader),
        serializer.read(reader)
      );
    } else {
      return new ExceptionReply(
View Full Code Here

      serializer.write(request.serviceId, writer);
      serializer.write(request.methodId, writer);
      serializer.write((request.arguments == null) ? NO_ARGUMENTS : Arrays.asList(request.arguments), writer);
    } else if (message instanceof ValueReply) {
      writer.writeByte(VALUE_REPLY);
      final ValueReply reply = (ValueReply)message;
      serializer.write(reply.context, writer);
      serializer.write(reply.value, writer);
    } else {
      writer.writeByte(EXCEPTION_REPLY);
      final ExceptionReply reply = (ExceptionReply)message;
View Full Code Here

        contractSerializer.read(reader),
        toArray((List<Object>)contractSerializer.read(reader))
      );
    }
    if (type == VALUE_REPLY) {
      return new ValueReply(
        contractSerializer.read(reader)
      );
    }
    return new ExceptionReply(
      (Throwable)contractSerializer.read(reader)
View Full Code Here

      contractSerializer.write(request.serviceId, writer);
      contractSerializer.write(request.methodId, writer);
      contractSerializer.write((request.arguments == null) ? NO_ARGUMENTS : Arrays.asList(request.arguments), writer);
    } else if (message instanceof ValueReply) {
      writer.writeByte(VALUE_REPLY);
      final ValueReply reply = (ValueReply)message;
      contractSerializer.write(reply.value, writer);
    } else {
      writer.writeByte(EXCEPTION_REPLY);
      final ExceptionReply reply = (ExceptionReply)message;
      contractSerializer.write(reply.throwable, writer);
View Full Code Here

TOP

Related Classes of ch.softappeal.yass.core.remote.ValueReply

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.