
io.fabric8.etcd.core.MutableNode Maven / Gradle / Ivy
/**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package io.fabric8.etcd.core;
import io.fabric8.etcd.api.Node;
import java.util.Set;
public class MutableNode implements Node {
private String key;
private long createdIndex;
private long modifiedIndex;
private String value;
private String expiration;
private int ttl;
private Set nodes;
private boolean dir;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public long getCreatedIndex() {
return createdIndex;
}
public void setCreatedIndex(long createdIndex) {
this.createdIndex = createdIndex;
}
public long getModifiedIndex() {
return modifiedIndex;
}
public void setModifiedIndex(long modifiedIndex) {
this.modifiedIndex = modifiedIndex;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getExpiration() {
return expiration;
}
public void setExpiration(String expiration) {
this.expiration = expiration;
}
public int getTtl() {
return ttl;
}
public void setTtl(int ttl) {
this.ttl = ttl;
}
public Set getNodes() {
return nodes;
}
public void setNodes(Set nodes) {
this.nodes = nodes;
}
public boolean isDir() {
return dir;
}
public void setDir(boolean dir) {
this.dir = dir;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy