public class TransactionImpl extends Object implements Transaction
Constructor and Description |
---|
TransactionImpl(String hostAddress,
String macAddress,
boolean relayMode,
String myIpAddress,
boolean extendedMode,
String requestIpAddress,
int timeout) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(Response response) |
InetAddress |
getHostAddress() |
byte[] |
getMacAddress() |
InetAddress |
getMyIpAddress() |
InetAddress |
getRequestIpAddress() |
Response |
getResponse() |
long |
getResponseTime() |
int |
getTimeout() |
int |
getXid() |
boolean |
isExtendedMode() |
boolean |
isRelayMode() |
boolean |
isSuccess() |
void |
setXid(int xid) |
String |
toString() |
void |
updateStartTime() |
public int getTimeout()
public boolean check(Response response)
public void updateStartTime()
public long getResponseTime()
getResponseTime
in interface Transaction
public Response getResponse()
public boolean isSuccess()
isSuccess
in interface Transaction
public InetAddress getHostAddress()
public byte[] getMacAddress()
public InetAddress getRequestIpAddress()
public boolean isExtendedMode()
public boolean isRelayMode()
public int getXid()
public void setXid(int xid)
public InetAddress getMyIpAddress()
Copyright © 2021. All rights reserved.