Code example for DataOutput

Methods: writeBoolean

0
        add = in.readBoolean();
    } 
 
    @Override 
    public void writeData(DataOutput out) throws IOException {
        address.writeData(out);
        out.writeBoolean(add);
    } 
 
    @Override 
    public String toString() {
        return "AddOrRemoveConnection add=" + add + ", " + address;
    } 
 
    public void process() { 
        node.clusterManager.handleAddRemoveConnection(this);
    } 
}