Skip to content

Commit ef279fd

Browse files
committed
gpclient: adding AutoCloseable to PVReader and PVWriter
1 parent dcd4da7 commit ef279fd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gpclient/gpclient-core/src/main/java/org/epics/gpclient/PVReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* @author carcassi
4545
* @param <T> the type of the PVReader.
4646
*/
47-
public interface PVReader<T> {
47+
public interface PVReader<T> extends AutoCloseable {
4848

4949
/**
5050
* Returns the current value of the PVReader.

gpclient/gpclient-core/src/main/java/org/epics/gpclient/PVWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @param <T> type of the write payload
1818
* @author carcassi
1919
*/
20-
public interface PVWriter<T> {
20+
public interface PVWriter<T> extends AutoCloseable {
2121

2222
/**
2323
* Writes a new value asynchronously using the default callback. The result

0 commit comments

Comments
 (0)