Skip to content

Commit 18fbd65

Browse files
committed
PVA write vs. asyncWrite comments
1 parent b3af14f commit 18fbd65

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

core/pv/src/main/java/org/phoebus/pv/pva/PVA_PV.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,17 @@ public VType get(final long timeout, final TimeUnit unit)
164164
@Override
165165
public void write(final Object new_value) throws Exception
166166
{
167+
// With Channel Access, there are different protocol options
168+
// for "put" vs. "put-callback".
169+
// With PVA, it is currently unclear how to distinguish between
170+
// these two. The PVA server might honor certain values in the
171+
// "request", but that is not documented as part of the protocol.
172+
// On one hand, we should 'get()' the result of the write to
173+
// receive exceptions for read-only PVs.
174+
// On the other hand, such a 'get()' could last a long time
175+
// in case some detail in the 'request' caused the PVA server
176+
// to perform a put-callback type of operation,
177+
// and a GUI calling write() expect an immediate return.
167178
channel.write(name_helper.getWriteRequest(), new_value);
168179
}
169180

0 commit comments

Comments
 (0)