Closed fpopic closed 6 years ago
Hi,
Is there a possibility to mock somehow IAerospikeClient interface in Scala/Java using any mocking library like mock<IAerospikeClient> avoiding
mock<IAerospikeClient>
Caused by: java.io.NotSerializableException: com.aerospike.client.Key not Serializable
when sending the client over the network (for example, sending the client to Google Dataflow workers)
Would pull request with:
public interface IAerospikeClient extends Closeable, Serializable
solve the problem (of course all object that client uses need to be also Serializable)?
I recommend trying to fix the java client to handle your use-case. If it works, issue a pull request.
Hi,
Is there a possibility to mock somehow IAerospikeClient interface in Scala/Java using any mocking library like
mock<IAerospikeClient>
avoidingCaused by: java.io.NotSerializableException: com.aerospike.client.Key not Serializable
when sending the client over the network (for example, sending the client to Google Dataflow workers)
Would pull request with:
public interface IAerospikeClient extends Closeable, Serializable
solve the problem (of course all object that client uses need to be also Serializable)?