public class GlobalRequest extends AbstractRequestFuture
Constructor and Description |
---|
GlobalRequest(String name,
Connection<?> con,
byte[] requestdata)
Contstruct a request.
|
Modifier and Type | Method and Description |
---|---|
void |
complete(boolean success) |
Connection<?> |
getConnection() |
byte[] |
getData()
Get the request data, if the request has been sent and processed, this will
return the response data (which can be null).
|
String |
getName()
Get the name of the request.
|
void |
setData(byte[] requestdata)
Set the data.
|
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
public GlobalRequest(String name, Connection<?> con, byte[] requestdata)
name
- the name of the requestthe
- connection of the requestrequestdata
- the request datapublic String getName()
public Connection<?> getConnection()
public byte[] getData()
public void setData(byte[] requestdata)
requestdata
- public void complete(boolean success)
Copyright © 2016. All rights reserved.