Class PlcRequestContainer<T extends InternalPlcRequest,R extends InternalPlcResponse>
java.lang.Object
org.apache.plc4x.java.base.messages.PlcRequestContainer<T,R>
- Type Parameters:
T- type of request.R- type of response.
- All Implemented Interfaces:
PlcProtocolMessage
public class PlcRequestContainer<T extends InternalPlcRequest,R extends InternalPlcResponse> extends Object implements PlcProtocolMessage
Helper mostly used internally to split up big requests into multiple sub-requests.
-
Constructor Summary
Constructors Constructor Description PlcRequestContainer(T request, CompletableFuture<R> responseFuture) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)PlcProtocolMessagegetParent()PlcRequestContainerobjects don't have parents.TgetRequest()CompletableFuture<R>getResponseFuture()inthashCode()StringtoString()
-
Constructor Details
-
Method Details
-
getRequest
-
getResponseFuture
-
getParent
PlcRequestContainerobjects don't have parents.- Specified by:
getParentin interfacePlcProtocolMessage- Returns:
- null
-
toString
-
equals
-
hashCode
public int hashCode()
-