public class UcpAmData extends Object implements Closeable
receive(long, org.openucx.jucx.UcxCallback) to receive actual data.
- Actual data. Need to call close() when not needed.| Modifier and Type | Method and Description |
|---|---|
boolean |
canPersist()
Whether this amData descriptor can be persisted outside
UcpAmRecvCallback.onReceive(long, long, org.openucx.jucx.ucp.UcpAmData, org.openucx.jucx.ucp.UcpEndpoint)
callback by returning UcsConstants.STATUS#UCS_INPROGRESS |
void |
close() |
long |
getDataAddress()
Get an address of received data
|
long |
getDataHandle()
Get UCX data handle descriptor to pass to
UcpWorker.recvAmDataNonBlocking(long, long, long, org.openucx.jucx.UcxCallback, int) |
long |
getFlags()
Receive operation flags.
|
long |
getLength() |
boolean |
isDataValid()
Whether actual data is received or need to call
receive(long, UcxCallback) |
UcpRequest |
receive(long resultAddress,
UcxCallback callback) |
String |
toString() |
public boolean isDataValid()
receive(long, UcxCallback)public boolean canPersist()
UcpAmRecvCallback.onReceive(long, long, org.openucx.jucx.ucp.UcpAmData, org.openucx.jucx.ucp.UcpEndpoint)
callback by returning UcsConstants.STATUS#UCS_INPROGRESSpublic long getFlags()
public long getDataAddress()
public long getLength()
public long getDataHandle()
UcpWorker.recvAmDataNonBlocking(long, long, long, org.openucx.jucx.UcxCallback, int)public UcpRequest receive(long resultAddress, UcxCallback callback)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2021. All rights reserved.