private void writeResponse(final Integer response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(INTEGER); output.writeInt(response); } }); }
private void writeResponse(final boolean response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(BOOLEAN); output.writeBoolean(response); } }); }
private void writeNotification(final int listenerId, final Notification notification, final Object handback) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(SEND_NOTIFICATION); output.writeInt(0x00); output.writeByte(INTEGER); output.writeInt(listenerId); output.writeByte(NOTIFICATION); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(notification); marshaller.writeByte(OBJECT); marshaller.writeObject(handback); marshaller.finish(); } }); }
private void writeResponse(final String[] response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(STRING_ARRAY); output.writeInt(response.length); for (String currentDomain : response) { output.writeUTF(currentDomain); } } }); }
private void writeResponse(final Object response, final byte type, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(type); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(response); marshaller.finish(); } }); }
private void writeResponse(final boolean response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(BOOLEAN); output.writeBoolean(response); } }); }
private void writeResponse(final Integer response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(INTEGER); output.writeInt(response); } }); }
private void writeResponse(final Integer response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(INTEGER); output.writeInt(response); } }); }
private void writeResponse(final boolean response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(BOOLEAN); output.writeBoolean(response); } }); }
private void writeResponse(final Object response, final byte type, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(type); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(response); marshaller.finish(); } }); }
private void writeResponse(final String[] response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(STRING_ARRAY); output.writeInt(response.length); for (String currentDomain : response) { output.writeUTF(currentDomain); } } }); }
private void writeResponse(final Object response, final byte type, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(type); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(response); marshaller.finish(); } }); }
private void writeResponse(final String[] response, final byte inResponseTo, final int correlationId) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(inResponseTo ^ RESPONSE_MASK); output.writeInt(correlationId); output.writeByte(SUCCESS); output.writeByte(STRING_ARRAY); output.writeInt(response.length); for (String currentDomain : response) { output.writeUTF(currentDomain); } } }); }
private void writeNotification(final int listenerId, final Notification notification, final Object handback) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(SEND_NOTIFICATION); output.writeInt(0x00); output.writeByte(INTEGER); output.writeInt(listenerId); output.writeByte(NOTIFICATION); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(notification); marshaller.writeByte(OBJECT); marshaller.writeObject(handback); marshaller.finish(); } }); }
private void writeNotification(final int listenerId, final Notification notification, final Object handback) throws IOException { write(new MessageWriter() { @Override public void write(DataOutput output) throws IOException { output.writeByte(SEND_NOTIFICATION); output.writeInt(0x00); output.writeByte(INTEGER); output.writeInt(listenerId); output.writeByte(NOTIFICATION); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(notification); marshaller.writeByte(OBJECT); marshaller.writeObject(handback); marshaller.finish(); } }); }