The PlasmaClient can ask the PlasmaStore to allocate a new buffer, seal a buffer, and get a * buffer. Buffers are referred to by object IDs. + * + * @deprecated Plasma is deprecated since 10.0.0. Plasma will not be released from Apache Arrow 12.0.0 or so. */ +@Deprecated public class PlasmaClient implements ObjectStoreLink { private final long conn; diff --git a/java/plasma/src/main/java/org/apache/arrow/plasma/PlasmaClientJNI.java b/java/plasma/src/main/java/org/apache/arrow/plasma/PlasmaClientJNI.java index da5c17e6be0..8a45201c8e0 100644 --- a/java/plasma/src/main/java/org/apache/arrow/plasma/PlasmaClientJNI.java +++ b/java/plasma/src/main/java/org/apache/arrow/plasma/PlasmaClientJNI.java @@ -24,7 +24,10 @@ /** * JNI static methods for PlasmaClient. + * + * @deprecated Plasma is deprecated since 10.0.0. Plasma will not be released from Apache Arrow 12.0.0 or so. */ +@Deprecated public class PlasmaClientJNI { public static native long connect(String storeSocketName, String managerSocketName, int releaseDelay); diff --git a/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/DuplicateObjectException.java b/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/DuplicateObjectException.java index cb735282cea..f0cfb1fff3c 100644 --- a/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/DuplicateObjectException.java +++ b/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/DuplicateObjectException.java @@ -19,7 +19,10 @@ /** * Thrown when attempting to place an object into the store for an ID that already exists. + * + * @deprecated Plasma is deprecated since 10.0.0. Plasma will not be released from Apache Arrow 12.0.0 or so. */ +@Deprecated public class DuplicateObjectException extends RuntimeException { public DuplicateObjectException(String objectId) { diff --git a/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaClientException.java b/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaClientException.java index ff9d96b1724..cb97b6980fc 100644 --- a/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaClientException.java +++ b/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaClientException.java @@ -19,7 +19,10 @@ /** * Generic exception thrown by the plasma client (for example on failure to connect). + * + * @deprecated Plasma is deprecated since 10.0.0. Plasma will not be released from Apache Arrow 12.0.0 or so. */ +@Deprecated public class PlasmaClientException extends RuntimeException { public PlasmaClientException(String message) { diff --git a/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaOutOfMemoryException.java b/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaOutOfMemoryException.java index ffc4177ebbe..6462cd5dff1 100644 --- a/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaOutOfMemoryException.java +++ b/java/plasma/src/main/java/org/apache/arrow/plasma/exceptions/PlasmaOutOfMemoryException.java @@ -19,7 +19,10 @@ /** * Indicates no more memory is available in Plasma. + * + * @deprecated Plasma is deprecated since 10.0.0. Plasma will not be released from Apache Arrow 12.0.0 or so. */ +@Deprecated public class PlasmaOutOfMemoryException extends RuntimeException { public PlasmaOutOfMemoryException(String message) { diff --git a/java/plasma/src/test/java/org/apache/arrow/plasma/PlasmaClientTest.java b/java/plasma/src/test/java/org/apache/arrow/plasma/PlasmaClientTest.java index e02ee51f9ed..f9bfac4c56c 100644 --- a/java/plasma/src/test/java/org/apache/arrow/plasma/PlasmaClientTest.java +++ b/java/plasma/src/test/java/org/apache/arrow/plasma/PlasmaClientTest.java @@ -29,6 +29,10 @@ import org.apache.arrow.plasma.exceptions.PlasmaOutOfMemoryException; import org.junit.Assert; +/* + * @Deprecated Plasma is deprecated since 10.0.0. Plasma will not be released from Apache Arrow 12.0.0 or so. + */ +@Deprecated public class PlasmaClientTest { private String storeSuffix = "/tmp/store";