org.apache.zookeeper.proto.SetWatches2 Maven / Gradle / Ivy
// File generated by hadoop record compiler. Do not edit.
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF 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 org.apache.zookeeper.proto;
import org.apache.jute.*;
import org.apache.jute.Record; // JDK14 needs explicit import due to clash with java.lang.Record
import org.apache.yetus.audience.InterfaceAudience;
@InterfaceAudience.Public
public class SetWatches2 implements Record {
private long relativeZxid;
private java.util.List dataWatches;
private java.util.List existWatches;
private java.util.List childWatches;
private java.util.List persistentWatches;
private java.util.List persistentRecursiveWatches;
public SetWatches2() {
}
public SetWatches2(
long relativeZxid,
java.util.List dataWatches,
java.util.List existWatches,
java.util.List childWatches,
java.util.List persistentWatches,
java.util.List persistentRecursiveWatches) {
this.relativeZxid=relativeZxid;
this.dataWatches=dataWatches;
this.existWatches=existWatches;
this.childWatches=childWatches;
this.persistentWatches=persistentWatches;
this.persistentRecursiveWatches=persistentRecursiveWatches;
}
public long getRelativeZxid() {
return relativeZxid;
}
public void setRelativeZxid(long m_) {
relativeZxid=m_;
}
public java.util.List getDataWatches() {
return dataWatches;
}
public void setDataWatches(java.util.List m_) {
dataWatches=m_;
}
public java.util.List getExistWatches() {
return existWatches;
}
public void setExistWatches(java.util.List m_) {
existWatches=m_;
}
public java.util.List getChildWatches() {
return childWatches;
}
public void setChildWatches(java.util.List m_) {
childWatches=m_;
}
public java.util.List getPersistentWatches() {
return persistentWatches;
}
public void setPersistentWatches(java.util.List m_) {
persistentWatches=m_;
}
public java.util.List getPersistentRecursiveWatches() {
return persistentRecursiveWatches;
}
public void setPersistentRecursiveWatches(java.util.List m_) {
persistentRecursiveWatches=m_;
}
public void serialize(OutputArchive a_, String tag) throws java.io.IOException {
a_.startRecord(this,tag);
a_.writeLong(relativeZxid,"relativeZxid");
{
a_.startVector(dataWatches,"dataWatches");
if (dataWatches!= null) { int len1 = dataWatches.size();
for(int vidx1 = 0; vidx1();
for (; !vidx1.done(); vidx1.incr()) {
String e1;
e1=a_.readString("e1");
dataWatches.add(e1);
}
}
a_.endVector("dataWatches");
}
{
Index vidx1 = a_.startVector("existWatches");
if (vidx1!= null) { existWatches=new java.util.ArrayList();
for (; !vidx1.done(); vidx1.incr()) {
String e1;
e1=a_.readString("e1");
existWatches.add(e1);
}
}
a_.endVector("existWatches");
}
{
Index vidx1 = a_.startVector("childWatches");
if (vidx1!= null) { childWatches=new java.util.ArrayList();
for (; !vidx1.done(); vidx1.incr()) {
String e1;
e1=a_.readString("e1");
childWatches.add(e1);
}
}
a_.endVector("childWatches");
}
{
Index vidx1 = a_.startVector("persistentWatches");
if (vidx1!= null) { persistentWatches=new java.util.ArrayList();
for (; !vidx1.done(); vidx1.incr()) {
String e1;
e1=a_.readString("e1");
persistentWatches.add(e1);
}
}
a_.endVector("persistentWatches");
}
{
Index vidx1 = a_.startVector("persistentRecursiveWatches");
if (vidx1!= null) { persistentRecursiveWatches=new java.util.ArrayList();
for (; !vidx1.done(); vidx1.incr()) {
String e1;
e1=a_.readString("e1");
persistentRecursiveWatches.add(e1);
}
}
a_.endVector("persistentRecursiveWatches");
}
a_.endRecord(tag);
}
public String toString() {
try {
java.io.ByteArrayOutputStream s =
new java.io.ByteArrayOutputStream();
ToStringOutputArchive a_ =
new ToStringOutputArchive(s);
a_.startRecord(this,"");
a_.writeLong(relativeZxid,"relativeZxid");
{
a_.startVector(dataWatches,"dataWatches");
if (dataWatches!= null) { int len1 = dataWatches.size();
for(int vidx1 = 0; vidx1
© 2015 - 2025 Weber Informatics LLC | Privacy Policy