Initial commit for FilePerMap implementation.

This commit is contained in:
danielshaya
2015-04-23 18:37:53 +01:00
parent 05368a987b
commit e9f995379d
5 changed files with 440 additions and 258 deletions
@@ -0,0 +1,62 @@
package net.openhft.chronicle.map;
/**
* Created by daniel on 23/04/15.
*/
public class FPMEvent {
public enum EventType {NEW, UPDATE, DELETE}
private EventType eventType;
private boolean programmatic;
private String key;
private String value;
public FPMEvent(EventType eventType, boolean programmatic, String key, String value) {
this.eventType = eventType;
this.programmatic = programmatic;
this.key = key;
this.value = value;
}
public EventType getEventType() {
return eventType;
}
public void setEventType(EventType eventType) {
this.eventType = eventType;
}
public boolean isProgrammatic() {
return programmatic;
}
public void setProgrammatic(boolean programmatic) {
this.programmatic = programmatic;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String toString() {
return "FPMEvent{" +
"eventType=" + eventType +
", programmatic=" + programmatic +
", key='" + key + '\'' +
", value='" + value + '\'' +
'}';
}
}