
co.spraybot.messagerunner.parcels.DefaultDataStoreParcel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of message-runner Show documentation
Show all versions of message-runner Show documentation
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