Java Code Examples for kafka.utils.ZKStringSerializer#serialize()

The following examples show how to use kafka.utils.ZKStringSerializer#serialize() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Resources.java    From DCMonitor with MIT License 4 votes vote down vote up
@Override
public byte[] serialize(Object data) throws ZkMarshallingError {
  return ZKStringSerializer.serialize(data);
}
 
Example 2
Source File: SystemsUtils.java    From incubator-samoa with Apache License 2.0 4 votes vote down vote up
@Override
public byte[] serialize(Object obj) throws ZkMarshallingError {
  return ZKStringSerializer.serialize(obj);
}
 
Example 3
Source File: ZkStringSerializer.java    From Decision with Apache License 2.0 4 votes vote down vote up
@Override
public byte[] serialize(Object data){
    return ZKStringSerializer.serialize(data);
}
 
Example 4
Source File: SystemsUtils.java    From samoa with Apache License 2.0 4 votes vote down vote up
@Override
public byte[] serialize(Object obj) throws ZkMarshallingError {
	return ZKStringSerializer.serialize(obj);
}