private MqMessage convertToMqMessage(BeanstalkJob bkJob) { MqMessage mm = new MqMessage(); mm.setId(bkJob.getId()); mm.setData(bkJob.getData()); mm.setCleint(this); return mm; }
private BeanstalkJob convertToBeanstalkJob(MqMessage job) { BeanstalkJob bjob = new BeanstalkJob(); bjob.setClient(bkc); bjob.setData(job.getData()); bjob.setId(job.getId()); return bjob; }