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

co.spraybot.messagerunner.parcels.DefaultDataStoreParcel Maven / Gradle / Ivy

Go to download

A micro-framework to allow easily passing specific Vert.x messages to specific addresses for processing of those messages.

The newest version!
package co.spraybot.messagerunner.parcels;

import co.spraybot.messagerunner.DataStoreParcel;
import co.spraybot.messagerunner.DataStoreVerticle;

public class DefaultDataStoreParcel implements DataStoreParcel {

    private String key;
    private DataStoreVerticle.Operation operation;
    private T value;
    private Class valueType;

    public DefaultDataStoreParcel(String key, DataStoreVerticle.Operation operation, T value, Class valueType) {
        this.key = key;
        this.operation = operation;
        this.value = value;
        this.valueType = valueType;
    }

    @Override
    public DataStoreVerticle.Operation getDataStoreOperation() {
        return operation;
    }

    @Override
    public String getKey() {
        return key;
    }

    @Override
    public T getValue() {
        return value;
    }

    @Override
    public Class getValueType() {
        return valueType;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy