Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated SimpleEntryView.evictionCriteriaNumber #15846

Merged
merged 1 commit into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,21 +224,6 @@ public SimpleEntryView<K, V> withMaxIdle(long maxIdle) {
return this;
}

/**
* Needed for client protocol compatibility.
*/
@SuppressWarnings("unused")
public long getEvictionCriteriaNumber() {
return 0;
}

/**
* Needed for client protocol compatibility.
*/
@SuppressWarnings("unused")
public void setEvictionCriteriaNumber(long evictionCriteriaNumber) {
}

@Override
public void writeData(ObjectDataOutput out) throws IOException {
IOUtil.writeObject(out, key);
Expand All @@ -251,8 +236,6 @@ public void writeData(ObjectDataOutput out) throws IOException {
out.writeLong(lastStoredTime);
out.writeLong(lastUpdateTime);
out.writeLong(version);
// writes the deprecated evictionCriteriaNumber to the data output (client protocol compatibility)
out.writeLong(0);
out.writeLong(ttl);
out.writeLong(maxIdle);
}
Expand All @@ -269,8 +252,6 @@ public void readData(ObjectDataInput in) throws IOException {
lastStoredTime = in.readLong();
lastUpdateTime = in.readLong();
version = in.readLong();
// reads the deprecated evictionCriteriaNumber from the data input (client protocol compatibility)
in.readLong();
ttl = in.readLong();
maxIdle = in.readLong();
}
Expand Down