All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.it.hazelcast.client.IdentifiedDataSerializableWrapperFactory Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package io.quarkus.it.hazelcast.client;

import com.hazelcast.nio.serialization.IdentifiedDataSerializable;

class IdentifiedDataSerializableWrapperFactory implements com.hazelcast.nio.serialization.DataSerializableFactory {

    static final int FACTORY_ID = 42;

    @Override
    public IdentifiedDataSerializable create(int typeId) {
        if (typeId == IdentifiedDataSerializableWrapper.CLASS_ID) {
            return new IdentifiedDataSerializableWrapper();
        }

        throw new IllegalArgumentException(typeId + " unknown");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy