org.apache.mesos.state.Variable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mesos Show documentation
Show all versions of mesos Show documentation
The Apache Mesos Java API jar.
/**
* 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.mesos.state;
/**
* Represents a key/value pair stored in the {@link State}. Variables
* are versioned such that setting a variable in the state will only
* succeed if the variable has not changed since last fetched.
*/
public class Variable {
protected Variable() {}
/**
* Returns the current value of this variable.
*
* @return The current value.
*/
public native byte[] value();
/**
* Updates the current value of this variable.
*
* @param value The new value.
*
* @return A variable representing the new value.
*/
public native Variable mutate(byte[] value);
protected native void finalize();
private long __variable;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy