public final class RpcCall extends Object implements AutoCloseable
Constructor and Description |
---|
RpcCall(NetworkTableEntry entry,
int call)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelResult()
Ignore the result.
|
void |
close()
Cancels the result if no other action taken.
|
void |
free()
Deprecated.
|
int |
getCall()
Get the call native handle.
|
NetworkTableEntry |
getEntry()
Get the RPC entry.
|
byte[] |
getResult()
Get the result (return value).
|
byte[] |
getResult(double timeout)
Get the result (return value).
|
boolean |
isValid()
Determines if the native handle is valid.
|
public RpcCall(NetworkTableEntry entry, int call)
entry
- Entrycall
- Call handle@Deprecated public void free()
public void close()
close
in interface AutoCloseable
public boolean isValid()
public NetworkTableEntry getEntry()
public int getCall()
public byte[] getResult()
public byte[] getResult(double timeout)
timeout
- timeout, in secondspublic void cancelResult()