private static QueueSerializer<String> createQueueSerializer() { return new QueueSerializer<String>(){ @Override public byte[] serialize(String item) { return item.getBytes(); } @Override public String deserialize(byte[] bytes) { return new String(bytes); } }; }
private static QueueSerializer<String> createQueueSerializer() { return new QueueSerializer<String>() { @Override public byte[] serialize(String item) { return item.getBytes(); } @Override public String deserialize(byte[] bytes) { return new String(bytes); } }; }